aboutsummaryrefslogtreecommitdiff
path: root/modern/src/SocketController.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/SocketController.js')
-rw-r--r--modern/src/SocketController.js2
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) {