From dfdcad28e5193aae305917f14f5df21ac300b16b Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sat, 28 Jan 2023 00:32:48 +0100 Subject: [PATCH] TextcVient: game reset (#1416) * TextClient: None out game on disconnect --- CommonClient.py | 4 ++++ 1 file changed, 4 insertions(+) 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):