Recreate our shutdowner list when we re-init() so that we don't end up
freaking out in standalone mode where the server is started, and shutdown and started again repeatedly. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3418 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -108,6 +108,9 @@ public class PresentsServer
|
||||
// register a ctrl-c handler
|
||||
SignalManager.registerSignalHandler(SignalManager.SIGINT, this);
|
||||
|
||||
// create our list of shutdowners
|
||||
_downers = new ObserverList(ObserverList.SAFE_IN_ORDER_NOTIFY);
|
||||
|
||||
// create our distributed object manager
|
||||
omgr = createDObjectManager();
|
||||
|
||||
@@ -353,8 +356,7 @@ public class PresentsServer
|
||||
protected static ArrayList _reporters = new ArrayList();
|
||||
|
||||
/** A list of shutdown participants. */
|
||||
protected static ObserverList _downers =
|
||||
new ObserverList(ObserverList.SAFE_IN_ORDER_NOTIFY);
|
||||
protected static ObserverList _downers;;
|
||||
|
||||
/** The frequency with which we generate "state of server" reports. */
|
||||
protected static final long REPORT_INTERVAL = 15 * 60 * 1000L;
|
||||
|
||||
Reference in New Issue
Block a user