@@ -39,8 +39,8 @@ var (
// check if websocket session is in the auth map
func WsIsAuthenticated(conn *websocket.Conn) bool {
AuthenticatedClients.Lock()
+ defer AuthenticatedClients.Unlock()
_, exists := AuthenticatedClients.Conns[conn]
- AuthenticatedClients.Unlock()
return exists
}
@@ -184,6 +184,7 @@ func constructPierInfo(piers []string) (map[string]structs.Urbit, error) {
// and insert the struct into the map we will use as input for the broadcast struct
updates[pier] = urbit
+ config.Logger.Info("Pier info constructed")
return updates, nil