Let's not freak out if our caller disappears while we're off resolving a

scene.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2834 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-10-25 00:10:35 +00:00
parent 5272911863
commit 0fc8813314
3 changed files with 37 additions and 14 deletions
@@ -1,5 +1,5 @@
//
// $Id: ZoneProvider.java,v 1.15 2003/06/11 02:48:07 mdb Exp $
// $Id: ZoneProvider.java,v 1.16 2003/10/25 00:10:35 mdb Exp $
package com.threerings.whirled.zone.server;
@@ -115,10 +115,18 @@ public class ZoneProvider
// create a callback object that will handle the resolution or
// failed resolution of the scene
SceneRegistry.ResolutionListener rl =
new SceneRegistry.ResolutionListener()
{
SceneRegistry.ResolutionListener rl = null;
rl = new SceneRegistry.ResolutionListener() {
public void sceneWasResolved (SceneManager scmgr) {
// make sure our caller is still around; under heavy load,
// clients might end their session while the scene is
// resolving
if (!fsource.isActive()) {
Log.info("Abandoning zone move, client gone " +
"[who=" + fsource.who() +
", dest=" + scmgr.where() + "].");
return;
}
finishMoveTo(fsource, fsum, scmgr, fsceneVer, flistener);
}