From 4088e16dec90adfcf0352bb3242ba8557f6b73c6 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sun, 6 May 2018 01:45:02 +0200 Subject: Fix daemonization in python 2 --- mastodon/Mastodon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: if run_async: handle = __stream_handle(connection, connect_func, reconnect_async, reconnect_async_wait_sec) - t = threading.Thread(args=(), daemon = True, target=handle._threadproc) + t = threading.Thread(args=(), target=handle._threadproc) + t.daemon = True t.start() return handle else: -- cgit v1.2.3