Skip to content

Commit

Permalink
Fix deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
g3force committed Jun 3, 2021
1 parent 7ed8235 commit d8fd765
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/board/board.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func (b *Board) SendToWebSocket(conn *websocket.Conn) {
if len(b.refereeData) > 0 {
if err := conn.WriteMessage(websocket.BinaryMessage, b.refereeData); err != nil {
log.Println("Could not write to referee websocket: ", err)
b.mutex.Unlock()
return
}
}
Expand Down

0 comments on commit d8fd765

Please sign in to comment.