fix multiplayer simultaneous

This commit is contained in:
Beric Bearnson
2024-10-24 17:52:14 -06:00
parent 067d22f3a9
commit d25f9c987a
2 changed files with 15 additions and 18 deletions
+1 -1
View File
@@ -84,9 +84,9 @@ func GamesListen() {
if err != nil {
log.Fatal(err)
}
defer gameListener.Close()
for {
defer gameListener.Close()
conn, err := gameListener.Accept()
if err != nil {
log.Println(err)