Support in-game server-control commands

This commit is contained in:
Griatch 2018-01-14 23:11:59 +01:00
parent 5133034b4b
commit 3bec3a3512
5 changed files with 20 additions and 18 deletions

View file

@ -148,6 +148,7 @@ class Portal(object):
case it always needs to be restarted manually.
"""
print("portal.shutdown: restart=", restart)
if _reactor_stopping and hasattr(self, "shutdown_complete"):
# we get here due to us calling reactor.stop below. No need
# to do the shutdown procedure again.