mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 20:17:16 +02:00
Fixing an error with the @reload resulting from removing the conf/ modules.
This commit is contained in:
parent
b9c6c4a6c2
commit
9409f835bc
1 changed files with 2 additions and 1 deletions
|
|
@ -236,7 +236,8 @@ class Evennia(object):
|
|||
ServerConfig.objects.conf("server_restart_mode", "reset")
|
||||
|
||||
if not _abrupt:
|
||||
SERVER_HOOK_MODULE.at_server_stop()
|
||||
if SERVER_HOOK_MODULE:
|
||||
SERVER_HOOK_MODULE.at_server_stop()
|
||||
reactor.callLater(0, reactor.stop)
|
||||
if os.name == 'nt' and os.path.exists(SERVER_PIDFILE):
|
||||
# for Windows we need to remove pid files manually
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue