From 44b0e05e9840b47e9491cf567292b7f425d34e0f Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 27 Sep 2024 20:52:44 +0200 Subject: [PATCH] fix: make sure we drop client after disconnecting --- lua/codemp/command.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/codemp/command.lua b/lua/codemp/command.lua index ae7bad8..21d5e27 100644 --- a/lua/codemp/command.lua +++ b/lua/codemp/command.lua @@ -82,6 +82,7 @@ local connected_actions = { disconnect = function() print(" xx disconnecting client " .. CODEMP.client.id) CODEMP.client = nil -- should drop and thus close everything + collectgarbage("collect") -- make sure we drop end, }