From: Harmon Date: Sat, 23 Jan 2021 00:18:25 +0000 (-0600) Subject: Close requests Session at the end of Stream._run X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9a9e2f098942d733537a0c4fc21af0b948d12db3;p=tweepy.git Close requests Session at the end of Stream._run --- diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 5323cba..4342673 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -210,6 +210,7 @@ class Stream: self.listener.on_exception(exc) raise finally: + self.session.close() self.running = False def _read_loop(self, resp):