summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmatchsrv.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/matchsrv.lua b/matchsrv.lua
index 65dd313..527e924 100755
--- a/matchsrv.lua
+++ b/matchsrv.lua
@@ -11,7 +11,8 @@ local peer_to_game = {}
local function remove_game(peer)
local game = game_to_peer[peer]
if game then
- peer_to_game[game] = nil
+ game_to_peer[game] = nil
+ peer_to_game[peer] = nil
end
end