TextcVient: game reset (#1416)

* TextClient: None out game on disconnect
This commit is contained in:
Fabian Dill
2023-01-28 00:32:48 +01:00
committed by GitHub
parent ab4324c901
commit dfdcad28e5

View File

@@ -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):