From 8bd757527a92ae0e113aee48660d00207060925a Mon Sep 17 00:00:00 2001 From: Constantine Date: Mon, 23 Jun 2014 12:20:28 +0300 Subject: [PATCH] Update streaming.py Changed _start() method of Stream class so now thread can be join'ed. --- tweepy/streaming.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 831474d..b22299b 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -231,7 +231,8 @@ class Stream(object): def _start(self, async): self.running = True if async: - Thread(target=self._run).start() + self._thread = Thread(target=self._run) + self._thread.start() else: self._run() -- 2.25.1