mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-22 09:37:09 +00:00
Set IsRunning = false early
This commit is contained in:
parent
1028e87149
commit
8d9ee6f162
1 changed files with 1 additions and 1 deletions
|
|
@ -185,13 +185,13 @@ func (r *Room) Close() {
|
|||
return
|
||||
}
|
||||
|
||||
r.IsRunning = false
|
||||
log.Println("Closing room", r.ID)
|
||||
log.Println("Closing director of room ", r.ID)
|
||||
close(r.director.Done)
|
||||
log.Println("Closing input of room ", r.ID)
|
||||
close(r.inputChannel)
|
||||
close(r.Done)
|
||||
r.IsRunning = true
|
||||
// Close here is a bit wrong because this read channel
|
||||
//close(r.imageChannel)
|
||||
//close(r.audioChannel)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue