From: Constantine Date: Mon, 23 Jun 2014 09:20:28 +0000 (+0300) Subject: Update streaming.py X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8bd757527a92ae0e113aee48660d00207060925a;p=tweepy.git Update streaming.py Changed _start() method of Stream class so now thread can be join'ed. --- 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()