diff options
author | Lorenz Diener <[email protected]> | 2018-05-06 01:45:02 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-05-06 01:45:02 +0200 |
commit | 4088e16dec90adfcf0352bb3242ba8557f6b73c6 (patch) | |
tree | 082ade2768adc6261758eb35e47c03030a2910cb /mastodon | |
parent | de29029037e2b94474b60971ce3cd006f3f7b419 (diff) | |
download | mastodon.py-4088e16dec90adfcf0352bb3242ba8557f6b73c6.tar.gz |
Fix daemonization in python 2
Diffstat (limited to 'mastodon')
-rw-r--r-- | mastodon/Mastodon.py | 3 |
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: |