diff options
author | Lorenz Diener <[email protected]> | 2018-01-29 12:28:44 +0100 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-01-29 12:28:44 +0100 |
commit | 216a4447b4eb3cc25b65f40b8d395b0587e9c6c0 (patch) | |
tree | 66b9866e388b395d880255aea9affb39f022c1f1 /mastodon | |
parent | 791439d96b28d5dd1b9d20d2921bd93ff02521fa (diff) | |
download | mastodon.py-216a4447b4eb3cc25b65f40b8d395b0587e9c6c0.tar.gz |
Fixed event not being cleared after dispatch
Diffstat (limited to 'mastodon')
-rw-r--r-- | mastodon/streaming.py | 1 |
1 files changed, 1 insertions, 0 deletions
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): | |||
55 | ) | 55 | ) |
56 | if line == '': | 56 | if line == '': |
57 | self._dispatch(event) | 57 | self._dispatch(event) |
58 | event = {} | ||
58 | else: | 59 | else: |
59 | event = self._parse_line(line, event) | 60 | event = self._parse_line(line, event) |
60 | line_buffer = bytearray() | 61 | line_buffer = bytearray() |