From 68c7a73647ddc0dcaf67abf3324175e909665ac7 Mon Sep 17 00:00:00 2001 From: Marco Montagna Date: Tue, 6 Nov 2018 22:16:27 -0800 Subject: [PATCH] # This is a combination of 3 commits. # The first commit's message is: Set daemon flag on async threads. # The 2nd commit message will be skipped: # Allow optionally setting thread's daemon but default to false. # The 3rd commit message will be skipped: # Revert "Allow optionally setting thread's daemon but default to false." # # This reverts commit fd27bc29cf22c8050c9ef62d4bb69b2eb065de90. --- tweepy/streaming.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 309124e..68d3f86 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -364,6 +364,7 @@ class Stream(object): self.running = True if is_async: self._thread = Thread(target=self._run) + self._thread.daemon = True self._thread.start() else: self._run() -- 2.25.1