Fix daemonization in python 2
This commit is contained in:
pare
de29029037
commit
4088e16dec
S'han modificat 1 arxius amb 2 adicions i 1 eliminacions
|
@ -1807,7 +1807,8 @@ class Mastodon:
|
||||||
|
|
||||||
if run_async:
|
if run_async:
|
||||||
handle = __stream_handle(connection, connect_func, reconnect_async, reconnect_async_wait_sec)
|
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()
|
t.start()
|
||||||
return handle
|
return handle
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Referencia en una nova incidència