mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 02:34:42 +00:00
Destroy rooms when the coordinator was lost
This commit is contained in:
parent
8fa53f4e32
commit
db32479c4e
1 changed files with 1 additions and 0 deletions
|
|
@ -113,6 +113,7 @@ func (w *Worker) Start(done chan struct{}) {
|
|||
case <-done:
|
||||
return
|
||||
default:
|
||||
w.Reset()
|
||||
cord, err := newCoordinatorConnection(remoteAddr, w.conf.Worker, w.address, w.log)
|
||||
if err != nil {
|
||||
onRetryFail(err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue