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