Fix no-location issues for istart (resolves #1662).

This commit is contained in:
Griatch 2018-09-23 23:29:23 +02:00
parent 3537ae13a4
commit 0d3c9ebea3
2 changed files with 11 additions and 5 deletions

View file

@ -192,9 +192,9 @@ class Evennia(object):
from twisted.internet.defer import Deferred
if hasattr(self, "web_root"):
d = self.web_root.empty_threadpool()
d.addCallback(lambda _: self.shutdown("shutdown", _reactor_stopping=True))
d.addCallback(lambda _: self.shutdown("reload", _reactor_stopping=True))
else:
d = Deferred(lambda _: self.shutdown("shutdown", _reactor_stopping=True))
d = Deferred(lambda _: self.shutdown("reload", _reactor_stopping=True))
d.addCallback(lambda _: reactor.stop())
reactor.callLater(1, d.callback, None)
reactor.sigInt = _wrap_sigint_handler