未验证 提交 40a0ab3f 编写于 作者: B Bo Zhou 提交者: GitHub

Update cluster_monitor.py (#273)

上级 79230b57
...@@ -103,7 +103,8 @@ class ClusterMonitor(object): ...@@ -103,7 +103,8 @@ class ClusterMonitor(object):
cluster_address (str): IP address of the exited client. cluster_address (str): IP address of the exited client.
""" """
self.lock.acquire() self.lock.acquire()
self.status['clients'].pop(client_address) if client_address in self.status['clients']:
self.status['clients'].pop(client_address)
self.lock.release() self.lock.release()
def get_status_info(self): def get_status_info(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册