v0.13.0 web and terminal client enhance, replay api, linux server deploy, doc and dependency update
test / test (push) Canceled after 0s
test / test (push) Canceled after 0s
This commit is contained in:
1 parent
52ac0fe31a
commit
f1ac4cbbe7
71 files changed
+7677
-537
No files matched your search
@@ -105,6 +105,12 @@ func (w *WaitRegistry) NotifyGame(gameID string, currentMoveCount int, state cor
|
||||
}
|
||||
}
|
||||
|
||||
// NotifyAll wakes every client waiting on a game, for changes that neither
|
||||
// move nor settle it, such as a draw offer.
|
||||
func (w *WaitRegistry) NotifyAll(gameID string) {
|
||||
w.RemoveGame(gameID)
|
||||
}
|
||||
|
||||
// RemoveGame removes all waiters for a game (called before game deletion)
|
||||
func (w *WaitRegistry) RemoveGame(gameID string) {
|
||||
w.mu.RLock()
|
||||
|
||||
Reference in new issue
Block a user