Skip to content

Commit

Permalink
Fix freeze when exiting multiplayer join screen
Browse files Browse the repository at this point in the history
  • Loading branch information
z-riley committed Dec 28, 2024
1 parent 9621edb commit 0181414
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package config
const (
// Version is used to check compatibility with other go-2048-battle clients when
// in versus mode.
Version = "0.0.1"
Version = "0.1.0"

// Debug enables debugging and diagnostics features which are useful for development.
Debug = false
Expand Down
2 changes: 1 addition & 1 deletion screens/multiplayer_join.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (s *MultiplayerJoinScreen) Enter(_ InitData) {
SetScreen(MultiplayerMenu, nil)
})

s.done = make(chan struct{})
s.done = make(chan struct{}, 1)
}

// Exit deinitialises the screen.
Expand Down

0 comments on commit 0181414

Please sign in to comment.