Skip to content

Commit

Permalink
the sound pipeline may be stuck, so 1 second after the cleanup reques…
Browse files Browse the repository at this point in the history
…t we try to force stop

git-svn-id: https://xpra.org/svn/Xpra/trunk@13454 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Aug 24, 2016
1 parent 24442c2 commit 8fd9765
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xpra/sound/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,12 @@ def force_exit():

def cleanup(self):
wo = self.wrapped_object
log("stop() wrapped object=%s", wo)
log("cleanup() wrapped object=%s", wo)
if wo:
#this will stop the sound pipeline:
self.wrapped_object = None
wo.cleanup()
self.timeout_add(1000, self.do_stop)

def export_info(self):
wo = self.wrapped_object
Expand Down

0 comments on commit 8fd9765

Please sign in to comment.