From 0683f7bdf439e98e7ab82d1398a245304cfeb777 Mon Sep 17 00:00:00 2001 From: odisk777 <65802862+odisk777@users.noreply.github.com> Date: Sat, 11 May 2024 20:51:21 -0500 Subject: [PATCH] (fix) clean callbacks on terminate to avoid callbacks duplication --- modules/game_bot/functions/server.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/game_bot/functions/server.lua b/modules/game_bot/functions/server.lua index 251edc8..d229550 100644 --- a/modules/game_bot/functions/server.lua +++ b/modules/game_bot/functions/server.lua @@ -70,6 +70,7 @@ context.BotServer.terminate = function() if context.BotServer._websocket then context.BotServer._websocket:close() context.BotServer._websocket = nil + context.BotServer._callbacks = {} end end