Skip to content

Commit

Permalink
only claim that the event has been handled when we have taken action,…
Browse files Browse the repository at this point in the history
… this should allow the default handler to run and force exit if somehow our signal_disconnect_and_quit got stuck (as it does with py3k?)

git-svn-id: https://xpra.org/svn/Xpra/trunk@9292 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed May 10, 2015
1 parent fa8749a commit f31108c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xpra/platform/win32/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,11 +555,11 @@ def handle_console_event(self, event):
if event==win32con.CTRL_C_EVENT:
if c:
c.signal_disconnect_and_quit(0, "CTRL_C")
return 1
return 1
if event==win32con.CTRL_CLOSE_EVENT:
if c:
c.signal_disconnect_and_quit(0, "CTRL_CLOSE")
return 1
return 1
return 0


Expand Down

0 comments on commit f31108c

Please sign in to comment.