|
|
@@ -338,8 +338,6 @@ func BroadcastToClients() error {
|
|
|
errmsg := fmt.Errorf("Error marshalling auth broadcast:", err)
|
|
|
return errmsg
|
|
|
}
|
|
|
- auth.AuthenticatedClients.Lock()
|
|
|
- defer auth.AuthenticatedClients.Unlock()
|
|
|
for client := range auth.AuthenticatedClients.Conns {
|
|
|
if err := client.WriteMessage(websocket.TextMessage, authJson); err != nil {
|
|
|
config.Logger.Error(fmt.Sprintf("Error writing response: %v", err))
|