diff options
author | Philipp Hörist <philipp@hoerist.com> | 2020-03-28 19:30:13 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2020-03-28 19:30:13 +0300 |
commit | 78da85211708d6c1c87e7d2333f31077e68dff3b (patch) | |
tree | 96a8c7216d61ad696270f978ac928290d6fc6364 | |
parent | 087a2798bb13d1840972184bf2991f9ec74bd38e (diff) |
Revert "TCP: Initiate new read before data-received signal"
This reverts commit 80ec5753de06bc8e92dd49b2aec4f8b13ec8401d
-rw-r--r-- | nbxmpp/tcp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nbxmpp/tcp.py b/nbxmpp/tcp.py index f50db27..be00732 100644 --- a/nbxmpp/tcp.py +++ b/nbxmpp/tcp.py @@ -236,13 +236,13 @@ class TCPConnection(Connection): self._log_stanza(data, received=True) - self._read_async() - try: self.notify('data-received', data) except Exception: self._log.exception('Error while executing data-received:') + self._read_async() + def _write_stanzas(self): self._write_stanza_buffer = self._write_queue self._write_queue = deque([]) |