TextcVient: game reset (#1416)
* TextClient: None out game on disconnect
This commit is contained in:
parent
ab4324c901
commit
dfdcad28e5
|
@ -822,6 +822,10 @@ if __name__ == '__main__':
|
||||||
if cmd == "Connected":
|
if cmd == "Connected":
|
||||||
self.game = self.slot_info[self.slot].game
|
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):
|
async def main(args):
|
||||||
ctx = TextContext(args.connect, args.password)
|
ctx = TextContext(args.connect, args.password)
|
||||||
|
|
Loading…
Reference in New Issue