From 216a4447b4eb3cc25b65f40b8d395b0587e9c6c0 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Mon, 29 Jan 2018 12:28:44 +0100 Subject: Fixed event not being cleared after dispatch --- mastodon/streaming.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mastodon/streaming.py b/mastodon/streaming.py index 16b5375..d55ad54 100644 --- a/mastodon/streaming.py +++ b/mastodon/streaming.py @@ -55,6 +55,7 @@ class StreamListener(object): ) if line == '': self._dispatch(event) + event = {} else: event = self._parse_line(line, event) line_buffer = bytearray() -- cgit v1.2.3