Skip to content

Commit

Permalink
SNIClient: set SNESState to SNES_DISCONNECTED when disconnected (Arch…
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvris authored and qwint committed Jun 24, 2024
1 parent 4bfb243 commit f38f5fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SNIClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def _cmd_snes_close(self) -> bool:
"""Close connection to a currently connected snes"""
self.ctx.snes_reconnect_address = None
self.ctx.cancel_snes_autoreconnect()
self.ctx.snes_state = SNESState.SNES_DISCONNECTED
if self.ctx.snes_socket and not self.ctx.snes_socket.closed:
async_start(self.ctx.snes_socket.close())
return True
Expand Down

0 comments on commit f38f5fc

Please sign in to comment.