Fix a bug with set_status when amount of topics is zero
This commit is contained in:
1 parent
cdb8e958c3
commit
0b8e0211ff
1 file changed
+1
-1
+1
-1
@@ -64,7 +64,7 @@ class Websocket:
|
||||
|
||||
def set_status(self, status: Optional[str] = None, refresh_topics: bool = False):
|
||||
self._twitch.gui.websockets.update(
|
||||
self._idx, status=status, topics=refresh_topics and len(self.topics) or None
|
||||
self._idx, status=status, topics=(len(self.topics) if refresh_topics else None)
|
||||
)
|
||||
|
||||
def request_reconnect(self):
|
||||
|
||||
Reference in new issue
Block a user