mirror of
https://github.com/AlexandreRouma/wiscast.git
synced 2026-04-20 16:22:44 +00:00
fix connection not being closed with duplicate display namess
This commit is contained in:
@@ -154,6 +154,9 @@ func displayHandler(sock *websocket.Conn, dispID string, otp string) {
|
|||||||
|
|
||||||
// Release the sending mutex
|
// Release the sending mutex
|
||||||
disp.sockSendMtx.Unlock()
|
disp.sockSendMtx.Unlock()
|
||||||
|
|
||||||
|
// Give up
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add the display to the list
|
// Add the display to the list
|
||||||
@@ -251,4 +254,4 @@ func displayHandler(sock *websocket.Conn, dispID string, otp string) {
|
|||||||
|
|
||||||
// Release the display list
|
// Release the display list
|
||||||
displaysLck.Unlock();
|
displaysLck.Unlock();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user