Do the actual reboot with a LongRunnable so that we don't get logged
warnings about it. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4634 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -236,9 +236,14 @@ public abstract class RebootManager
|
||||
broadcast("m.rebooting_now");
|
||||
|
||||
// wait 1 second, then do it
|
||||
new Interval(PresentsServer.omgr) {
|
||||
new Interval() { // Note: This interval does not run on the dobj thread
|
||||
public void expired () {
|
||||
_server.shutdown();
|
||||
// ...but we then post a LongRunnable...
|
||||
PresentsServer.omgr.postRunnable(new PresentsDObjectMgr.LongRunnable() {
|
||||
public void run () {
|
||||
_server.shutdown();
|
||||
}
|
||||
});
|
||||
}
|
||||
}.schedule(1000);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user