Fix daemonization in python 2

pull/128/head^2
Lorenz Diener 2018-05-06 01:45:02 +02:00
rodzic de29029037
commit 4088e16dec
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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: