aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2017-12-19 15:06:44 +0100
committerLorenz Diener <[email protected]>2017-12-19 15:06:44 +0100
commit08a0e5ff67600a7f12cd91daf25217ba3e8e51d3 (patch)
tree8f7e15a4296f3cb47e7f78661bd19bb052cfd1a2 /mastodon
parent9f9a7826d7bdb30eb394c6fd9f4fdafb06e9bfae (diff)
downloadmastodon.py-08a0e5ff67600a7f12cd91daf25217ba3e8e51d3.tar.gz
Daemonize streams
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index ca4849f..28ad9d8 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -1693,7 +1693,7 @@ class Mastodon:
1693 handle = __stream_handle(connection) 1693 handle = __stream_handle(connection)
1694 1694
1695 if async: 1695 if async:
1696 t = threading.Thread(args=(), target=handle._threadproc) 1696 t = threading.Thread(args=(), daemon = True, target=handle._threadproc)
1697 t.start() 1697 t.start()
1698 return handle 1698 return handle
1699 else: 1699 else:
Powered by cgit v1.2.3 (git 2.41.0)