From: Marco Montagna Date: Wed, 7 Nov 2018 06:16:27 +0000 (-0800) Subject: # This is a combination of 3 commits. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=68c7a73647ddc0dcaf67abf3324175e909665ac7;p=tweepy.git # 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. --- 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()