assigning a uuid when establishing a connection

master
Alex 2021-12-28 21:18:20 +01:00
parent 57a1164b2c
commit 1c6a8a3dd9
1 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,10 @@ func RunHub() {
client := serverCommunication.GetWebClientByUuid(clientDb.Uuid)
if client.Uuid == "" {
client.Uuid = clientDb.Uuid
}
if token == clientDb.VoiceSessionToken { // voice
client.VoiceConn = connection
logger.Web.Println("voice")