mod_admin_shell: Add session.is_connected() method

This commit is contained in:
Matthew Wild 2022-03-17 10:23:12 +00:00
parent 7881c5d093
commit 119725bbe3

View file

@ -104,6 +104,9 @@ function console:new_session(admin_session)
end;
serialize = tostring;
disconnect = function () admin_session:close(); end;
is_connected = function ()
return not not admin_session.conn;
end
};
session.env = setmetatable({}, default_env_mt);