From 08a0e5ff67600a7f12cd91daf25217ba3e8e51d3 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Tue, 19 Dec 2017 15:06:44 +0100 Subject: Daemonize streams --- mastodon/Mastodon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mastodon') 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: handle = __stream_handle(connection) if async: - t = threading.Thread(args=(), target=handle._threadproc) + t = threading.Thread(args=(), daemon = True, target=handle._threadproc) t.start() return handle else: -- cgit v1.2.3