diff --git a/lib/lichess_bot.py b/lib/lichess_bot.py index 926096404..ebc0de6f7 100644 --- a/lib/lichess_bot.py +++ b/lib/lichess_bot.py @@ -397,6 +397,9 @@ def lichess_bot_main(li: lichess.Lichess, online_block_list) elif event["type"] == "challengeDeclined": matchmaker.declined_challenge(event) + elif event["type"] == "challengeCanceled": + active_games.discard(event["game"]["id"]) + log_proc_count("Freed", active_games) elif event["type"] == "gameStart": matchmaker.accepted_challenge(event) start_game(event,