diff options
Diffstat (limited to 'modern')
-rw-r--r-- | modern/src/SocketController.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/SocketController.js b/modern/src/SocketController.js index a6f1fa11..d9221897 100644 --- a/modern/src/SocketController.js +++ b/modern/src/SocketController.js @@ -37,7 +37,7 @@ const SocketController = () => { dispatch(sessionActions.updateSocket(true)); }; - socket.onclose = async () => { + socket.onerror = async () => { dispatch(sessionActions.updateSocket(false)); const devicesResponse = await fetch('/api/devices'); if (devicesResponse.ok) { |