aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index c4e50f3..91e6b11 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -1306,7 +1306,11 @@ class Mastodon:
1306 def close(self): 1306 def close(self):
1307 self.connection.close() 1307 self.connection.close()
1308 1308
1309 def is_alive(self):
1310 return self._thread.is_alive()
1311
1309 def _threadproc(self): 1312 def _threadproc(self):
1313 self._thread = threading.current_thread()
1310 with closing(connection) as r: 1314 with closing(connection) as r:
1311 try: 1315 try:
1312 listener.handle_stream(r.iter_lines()) 1316 listener.handle_stream(r.iter_lines())
Powered by cgit v1.2.3 (git 2.41.0)