Need to register as a shutdowner.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2359 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: ClientManager.java,v 1.30 2003/03/30 21:04:18 mdb Exp $
|
// $Id: ClientManager.java,v 1.31 2003/03/30 21:27:23 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.presents.server;
|
package com.threerings.presents.server;
|
||||||
|
|
||||||
@@ -68,13 +68,17 @@ public class ClientManager
|
|||||||
}
|
}
|
||||||
}, CLIENT_FLUSH_INTERVAL, null, true);
|
}, CLIENT_FLUSH_INTERVAL, null, true);
|
||||||
|
|
||||||
// register as a "state of server" reporter
|
// register as a "state of server" reporter and a shutdowner
|
||||||
PresentsServer.registerReporter(this);
|
PresentsServer.registerReporter(this);
|
||||||
|
PresentsServer.registerShutdowner(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited from interface
|
// documentation inherited from interface
|
||||||
public void shutdown ()
|
public void shutdown ()
|
||||||
{
|
{
|
||||||
|
Log.info("Client manager shutting down " +
|
||||||
|
"[ccount=" + _usermap.size() + "].");
|
||||||
|
|
||||||
// inform all of our clients that they are being shut down
|
// inform all of our clients that they are being shut down
|
||||||
for (Iterator iter = _usermap.values().iterator(); iter.hasNext(); ) {
|
for (Iterator iter = _usermap.values().iterator(); iter.hasNext(); ) {
|
||||||
PresentsClient pc = (PresentsClient)iter.next();
|
PresentsClient pc = (PresentsClient)iter.next();
|
||||||
|
|||||||
Reference in New Issue
Block a user