Skip to content

Commit

Permalink
#986: don't try to push more data after we have stopped, which could …
Browse files Browse the repository at this point in the history
…cause errors to be sent back

git-svn-id: https://xpra.org/svn/Xpra/trunk@11452 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Dec 21, 2015
1 parent 1fc0a3c commit 36af889
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/xpra/sound/sink.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,10 @@ def get_info(self):

def add_data(self, data, metadata=None):
if not self.src:
log("add_data(..) dropped")
log("add_data(..) dropped, no source")
return
if self.state=="stopped":
log("add_data(..) dropped, pipeline is stopped")
return
#having a timestamp causes problems with the queue and overruns:
log("add_data(%s bytes, %s) queue_state=%s", len(data), metadata, self.queue_state)
Expand Down

0 comments on commit 36af889

Please sign in to comment.