Added ClassUtil.isSameClass(), reimplemented another function using
the constructor property. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4322 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -201,8 +201,16 @@ public class Communicator
|
||||
//Log.debug("length of in frame: " + frameData.length);
|
||||
//Log.debug("inBuffer: " + Util.bytesToString(frameData));
|
||||
_inStream.setSource(frameData);
|
||||
var msg :DownstreamMessage =
|
||||
(_inStream.readObject() as DownstreamMessage);
|
||||
var msg :DownstreamMessage;
|
||||
try {
|
||||
msg = (_inStream.readObject() as DownstreamMessage);
|
||||
} catch (e :Error) {
|
||||
var log :Log = Log.getLog(this);
|
||||
log.warning("Error processing downstream message: " + e);
|
||||
log.logStackTrace(e);
|
||||
return;
|
||||
}
|
||||
|
||||
if (frameData.bytesAvailable > 0) {
|
||||
Log.getLog(this).warning(
|
||||
"Beans! We didn't fully read a frame, surely there's " +
|
||||
|
||||
Reference in New Issue
Block a user