Another fix for potential streaming errors.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5967 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2009-09-24 19:37:34 +00:00
parent 730d448e40
commit 33d19f7a69
@@ -54,7 +54,9 @@ public class ByteArrayStreamer extends Streamer
override public function readObject (obj :Object, ins :ObjectInputStream) :void
{
var bytes :ByteArray = (obj as ByteArray);
ins.readBytes(bytes, 0, bytes.length);
if (bytes.length > 0) {
ins.readBytes(bytes, 0, bytes.length);
}
}
}
}