diff --git a/CommonClient.py b/CommonClient.py index e0970cdb..2fb0ef8e 100644 --- a/CommonClient.py +++ b/CommonClient.py @@ -821,6 +821,10 @@ if __name__ == '__main__': def on_package(self, cmd: str, args: dict): if cmd == "Connected": self.game = self.slot_info[self.slot].game + + async def disconnect(self, allow_autoreconnect: bool = False): + self.game = "" + await super().disconnect(allow_autoreconnect) async def main(args):