Fixing an error with the @reload resulting from removing the conf/ modules.

This commit is contained in:
Griatch 2012-03-25 22:35:33 +02:00
parent b9c6c4a6c2
commit 9409f835bc

View file

@ -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