From 018141492aabb2c1ebf7a99b3537fbf7c6fe0854 Mon Sep 17 00:00:00 2001 From: Zac Date: Sat, 28 Dec 2024 11:22:02 +0000 Subject: [PATCH] Fix freeze when exiting multiplayer join screen --- config/config.go | 2 +- screens/multiplayer_join.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index 63ccc0b..910d3a9 100644 --- a/config/config.go +++ b/config/config.go @@ -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 diff --git a/screens/multiplayer_join.go b/screens/multiplayer_join.go index 0254cb3..4fef6ee 100644 --- a/screens/multiplayer_join.go +++ b/screens/multiplayer_join.go @@ -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.