Skip to content

Commit

Permalink
Server: Fix copter removing
Browse files Browse the repository at this point in the history
  • Loading branch information
goldarte committed Oct 23, 2019
1 parent 90af9bb commit dd761e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,10 @@ def remove(self):
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
Expand Down

0 comments on commit dd761e7

Please sign in to comment.