Fixed regression in @shutdown command due to previous changes to session handling. Resolves #895.
This commit is contained in:
parent
84aeb9ed3a
commit
ff46bf9103
1 changed files with 2 additions and 4 deletions
|
|
@ -108,10 +108,8 @@ class CmdShutdown(MuxCommand):
|
||||||
|
|
||||||
def func(self):
|
def func(self):
|
||||||
"Define function"
|
"Define function"
|
||||||
try:
|
# Only allow shutdown if caller has session
|
||||||
# Only allow shutdown if caller has session
|
if not self.caller.sessions.get():
|
||||||
self.caller.sessions[0]
|
|
||||||
except Exception:
|
|
||||||
return
|
return
|
||||||
self.msg('Shutting down server ...')
|
self.msg('Shutting down server ...')
|
||||||
announcement = "\nServer is being SHUT DOWN!\n"
|
announcement = "\nServer is being SHUT DOWN!\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue