Simplify Stream.disconnect
authorHarmon <Harmon758@gmail.com>
Tue, 29 Dec 2020 07:34:32 +0000 (01:34 -0600)
committerHarmon <Harmon758@gmail.com>
Tue, 29 Dec 2020 07:34:32 +0000 (01:34 -0600)
tweepy/streaming.py

index 0651c1f26347e0754b0e2b204b5f2c38754b8e94..8e4aaf49af79bc1bc02c5598120327e5ca27b09a 100644 (file)
@@ -407,6 +407,4 @@ class Stream:
         self._start(is_async)
 
     def disconnect(self):
-        if self.running is False:
-            return
         self.running = False