From 093f57b6ee4979ef5ca6eb7e87ceba405d0544f8 Mon Sep 17 00:00:00 2001 From: Luther Wen Xu Date: Tue, 15 Oct 2019 23:38:35 +0800 Subject: [PATCH] go: Notify client when user leave voice channel --- GoBot/server/hub.go | 1 + 1 file changed, 1 insertion(+) diff --git a/GoBot/server/hub.go b/GoBot/server/hub.go index 0466861..1492b70 100644 --- a/GoBot/server/hub.go +++ b/GoBot/server/hub.go @@ -48,6 +48,7 @@ func ConnectUser(mcUsername string) { func DisconnectUser(mcUsername string) { delete(connectedUsers, mcUsername) + broadcast("leave " + mcUsername) } func RequestSync() {