Skip to content

Commit

Permalink
#619: don't clear then set again!
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@18149 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jan 25, 2018
1 parent b9051a0 commit b7104f6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/xpra/net/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,16 +349,15 @@ def _write_format_thread_loop(self):
gpc = self._get_packet_cb
if self._closed or not gpc:
return
self._source_has_more.clear()
self._add_packet_to_queue(*gpc())
except Exception as e:
if self._closed:
return
self._internal_error("error in network packet write/format", e, exc_info=True)

def _add_packet_to_queue(self, packet, start_send_cb=None, end_send_cb=None, fail_cb=None, synchronous=True, has_more=False):
if has_more:
self._source_has_more.set()
if not has_more:
self._source_has_more.clear()
if packet is None:
return
log("add_packet_to_queue(%s ...)", packet[0])
Expand Down

0 comments on commit b7104f6

Please sign in to comment.