mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 14:17:37 +03:00
mod_admin_shell: Add session.is_connected() method
This commit is contained in:
parent
7881c5d093
commit
119725bbe3
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue