Skip to content

Commit

Permalink
try to ensure we only call the close callback once
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@8906 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Apr 3, 2015
1 parent baf8315 commit 690db6c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/xpra/net/bytestreams.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,10 @@ def close(self):
self._writeable.close()
except:
pass
if self._close_cb:
self._close_cb()
cc = self._close_cb
if cc:
self._close_cb = None
cc()

def __repr__(self):
return "TwoFileConnection(%s)" % str(self.target)
Expand Down

0 comments on commit 690db6c

Please sign in to comment.