From 3e27b93c373273489070f9d31d98f0ea8a3d84a9 Mon Sep 17 00:00:00 2001 From: Silvris <58583688+Silvris@users.noreply.github.com> Date: Sun, 21 Apr 2024 09:59:19 -0500 Subject: [PATCH] SNIClient: set SNESState to SNES_DISCONNECTED when disconnected (#3188) --- SNIClient.py | 1 + 1 file changed, 1 insertion(+) diff --git a/SNIClient.py b/SNIClient.py index 1804ab3c..cf4ef758 100644 --- a/SNIClient.py +++ b/SNIClient.py @@ -85,6 +85,7 @@ class SNIClientCommandProcessor(ClientCommandProcessor): """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