diff options
| -rw-r--r-- | backend/game/hub.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/game/hub.go b/backend/game/hub.go index 8afc802..84f7a84 100644 --- a/backend/game/hub.go +++ b/backend/game/hub.go @@ -171,6 +171,9 @@ func (hub *gameHub) run() { } case executionResult := <-hub.testcaseExecution: for player := range hub.players { + if player.playerID != executionResult.Task.UserID { + continue + } player.s2cMessages <- &playerMessageS2CExecResult{ Type: playerMessageTypeS2CExecResult, Data: playerMessageS2CExecResultPayload{ |
