Skip to content

Commit

Permalink
call stop_protocol() via idle_add to prevent deadlocks on win32!
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@9339 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed May 13, 2015
1 parent e2e0520 commit 3b93480
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/xpra/net/subprocess_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ def cleanup(self):

def stop(self):
self.stop_process()
self.stop_protocol()
#call via idle_add to prevent deadlocks on win32!
glib.idle_add(self.stop_protocol)

def stop_process(self):
log("%s.stop_process() sending stop request to %s", self, self.description)
Expand Down
3 changes: 2 additions & 1 deletion src/xpra/sound/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ def verify_started(self):

def subprocess_signal(self, wrapper, proc):
log("subprocess_signal: %s", proc)
self.stop_protocol()
#call via idle_add to prevent deadlocks on win32!
glib.idle_add(self.stop_protocol)


def state_changed(self, wrapper, new_state):
Expand Down

0 comments on commit 3b93480

Please sign in to comment.