From 640a4c39019fbea1d47b6c8e0f06f82d79b9a1b0 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Wed, 5 Nov 2025 10:23:47 -0500 Subject: [PATCH] fix connection not being closed with duplicate display namess --- display.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/display.go b/display.go index 46912a2..666f525 100644 --- a/display.go +++ b/display.go @@ -154,6 +154,9 @@ func displayHandler(sock *websocket.Conn, dispID string, otp string) { // Release the sending mutex disp.sockSendMtx.Unlock() + + // Give up + return; } // Add the display to the list @@ -251,4 +254,4 @@ func displayHandler(sock *websocket.Conn, dispID string, otp string) { // Release the display list displaysLck.Unlock(); -} \ No newline at end of file +}