mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-07-17 21:56:07 -04:00
Make sure to disconnect the streams as tweepy implements it
This commit is contained in:
@@ -510,9 +510,8 @@ class Session(base.baseSession):
|
||||
self.stream_thread = call_threaded(self.stream.filter, follow=self.stream_listener.users, stall_warnings=True)
|
||||
|
||||
def stop_streaming(self):
|
||||
if hasattr(self, "stream_thread"):
|
||||
self.stream_thread.join()
|
||||
log.debug("Stopping Streaming Endpoint...")
|
||||
self.stream.running = False
|
||||
log.debug("Stream stopped for accounr {}".format(self.db["user_name"]))
|
||||
|
||||
def handle_new_status(self, status, user):
|
||||
""" Handles a new status present in the Streaming API. """
|
||||
|
Reference in New Issue
Block a user