more logs
This commit is contained in:
parent
5c1f7010f7
commit
b63eb08aa3
1 changed files with 10 additions and 7 deletions
5
hub.go
5
hub.go
|
|
@ -259,11 +259,14 @@ func presenceLoop() {
|
|||
}
|
||||
}
|
||||
|
||||
// Detect leaves
|
||||
for u := range prev {
|
||||
if !curr[u] {
|
||||
log.Printf("[presence] disconnected: %s", u)
|
||||
hub.Broadcast(map[string]string{"type": "user:disconnected", "username": u}, nil)
|
||||
log.Printf("[presence] pokerManager is nil: %v", pokerManager == nil)
|
||||
if pokerManager != nil {
|
||||
pokerManager.StandDisconnected(u)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue