Skip to content

Commit

Permalink
this is a list, we have to use remove()
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@21827 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 22, 2019
1 parent 23245d8 commit 5aa4887
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xpra/server/server_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,8 +769,8 @@ def cleanup_protocol(self, protocol):
#this ensures that from now on we ignore any incoming packets coming
#from this connection as these could potentially set some keys pressed, etc
try:
del self._potential_protocols[protocol]
except KeyError:
self._potential_protocols.remove(protocol)
except ValueError:
pass
source = self._server_sources.pop(protocol, None)
if source:
Expand Down

0 comments on commit 5aa4887

Please sign in to comment.