mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-05-29 16:29:34 +00:00
Server: Fix copter removing
This commit is contained in:
@@ -314,7 +314,10 @@ class Client(messaging.ConnectionManager):
|
||||
if self.connected:
|
||||
self.close()
|
||||
if self.clients:
|
||||
self.clients.pop(self.addr[0])
|
||||
try:
|
||||
self.clients.pop(self.addr[0])
|
||||
except Exception as e:
|
||||
logging.error(e)
|
||||
logging.info("Client {} successfully removed!".format(self.copter_id))
|
||||
|
||||
@requires_connect
|
||||
|
||||
Reference in New Issue
Block a user