Modernized something that must have been around prior to the ability to
post Runnables to the omgr queue. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4187 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -387,17 +387,14 @@ public class PresentsClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
// we need to get onto the distributed object thread so that we
|
// we need to get onto the distributed object thread so that we
|
||||||
// can finalize the resumption of the session. we do so by
|
// can finalize the resumption of the session.
|
||||||
// posting a special event
|
PresentsServer.omgr.postRunnable(new Runnable() {
|
||||||
DEvent event = new DEvent(0) {
|
public void run () {
|
||||||
public boolean applyToObject (DObject target) {
|
|
||||||
// now that we're on the dobjmgr thread we can resume our
|
// now that we're on the dobjmgr thread we can resume our
|
||||||
// session resumption
|
// session resumption
|
||||||
finishResumeSession();
|
finishResumeSession();
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
PresentsServer.omgr.postEvent(event);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user