Stop trying to recover from this error (it doesn't work), but try logging
the event target. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4644 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -284,14 +284,9 @@ public class Communicator
|
|||||||
}
|
}
|
||||||
|
|
||||||
// total failure
|
// total failure
|
||||||
Log.getLog(this).warning("socket error: " + event);
|
Log.getLog(this).warning("socket error: " + event + ", target=" + event.target);
|
||||||
Log.dumpStack();
|
Log.dumpStack();
|
||||||
if (_socket.connected) {
|
shutdown(new Error("socket closed unexpectedly."));
|
||||||
Log.getLog(this).info("Things seem ok. Ignoring.");
|
|
||||||
|
|
||||||
} else {
|
|
||||||
shutdown(new Error("socket closed unexpectedly."));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user