aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-05-06 01:45:02 +0200
committerLorenz Diener <[email protected]>2018-05-06 01:45:02 +0200
commit4088e16dec90adfcf0352bb3242ba8557f6b73c6 (patch)
tree082ade2768adc6261758eb35e47c03030a2910cb
parentde29029037e2b94474b60971ce3cd006f3f7b419 (diff)
downloadmastodon.py-4088e16dec90adfcf0352bb3242ba8557f6b73c6.tar.gz
Fix daemonization in python 2
-rw-r--r--mastodon/Mastodon.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index fd44d65..a2ff65f 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -1807,7 +1807,8 @@ class Mastodon:
1807 1807
1808 if run_async: 1808 if run_async:
1809 handle = __stream_handle(connection, connect_func, reconnect_async, reconnect_async_wait_sec) 1809 handle = __stream_handle(connection, connect_func, reconnect_async, reconnect_async_wait_sec)
1810 t = threading.Thread(args=(), daemon = True, target=handle._threadproc) 1810 t = threading.Thread(args=(), target=handle._threadproc)
1811 t.daemon = True
1811 t.start() 1812 t.start()
1812 return handle 1813 return handle
1813 else: 1814 else:
Powered by cgit v1.2.3 (git 2.41.0)