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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -822,6 +822,10 @@ if __name__ == '__main__':
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):
ctx = TextContext(args.connect, args.password)