Updated the reload and shutdown mecanism to avoid a loop when shutting down from inside the game. Made sure to have server sync correctly with portal at @reload (some session info were lost before). Some other cleanups.

This commit is contained in:
Griatch 2012-05-01 14:19:54 +02:00
parent e82515f8cb
commit 94477b8340
8 changed files with 171 additions and 118 deletions

View file

@ -17,8 +17,8 @@ matter the value of this file.
import os
import sys
from optparse import OptionParser
from subprocess import Popen, call
import Queue, thread, subprocess
from subprocess import Popen
import Queue, thread
#
# System Configuration
@ -276,7 +276,6 @@ def main():
if options.iportal:
# make portal interactive
portal_argv[1] = '--nodaemon'
PORTAL_INTERACTIVE = True
set_restart_mode(PORTAL_RESTART, True)
print "\nStarting Evennia Portal in non-Daemon mode (output to stdout)."
else: