Skip to content

Commit

Permalink
if the protocol has been cleared, assume it is closed already, means …
Browse files Browse the repository at this point in the history
…we can exit sooner in some cases

git-svn-id: https://xpra.org/svn/Xpra/trunk@9334 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed May 13, 2015
1 parent ff89bee commit ee39549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/client/client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def disconnect_and_quit(self, exit_code, reason):
#try to tell the server we're going, then quit
log("disconnect_and_quit(%s, %s)", exit_code, reason)
p = self._protocol
if p and p._closed:
if p is None or p._closed:
self.quit(exit_code)
return
def do_quit():
Expand Down

0 comments on commit ee39549

Please sign in to comment.