code cleanup and bugfixes

This commit is contained in:
Mikayla Fischler
2022-05-10 12:01:56 -04:00
parent d7e38d6393
commit 168341db39
12 changed files with 48 additions and 27 deletions

View File

@@ -97,7 +97,7 @@ local function _free_closed(sessions)
for i = 1, #sessions do
local session = sessions[i]
if session ~= nil then
if sessions[i].open then
if session.open then
if sessions[move_to] == nil then
sessions[move_to] = session
sessions[i] = nil