From 380bfaeeeadbd7c3d6d0ee79551fedb35d597d8c Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Mon, 25 Jul 2022 21:10:40 -0400 Subject: Fix a bug with the handshake --- scripts/client.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/client.js') diff --git a/scripts/client.js b/scripts/client.js index 4d27bc5..c243d9f 100644 --- a/scripts/client.js +++ b/scripts/client.js @@ -94,8 +94,7 @@ class Client{ // Callback when negotiating with the server for the first time and we are determining versions handshake (e) { - let m = e.detail; - switch (m.type) { + switch (e.detail) { case "verr": this.socket.close(); -- cgit v1.2.3