Yuta HIGUCHI

flushing just to be sure

Change-Id: Iebdc4b50a94e3247c15152c6c3148620739cc864
...@@ -171,6 +171,7 @@ public final class KryoNamespace implements KryoFactory { ...@@ -171,6 +171,7 @@ public final class KryoNamespace implements KryoFactory {
171 Kryo kryo = getKryo(); 171 Kryo kryo = getKryo();
172 try { 172 try {
173 kryo.writeClassAndObject(out, obj); 173 kryo.writeClassAndObject(out, obj);
174 + out.flush();
174 return out.toBytes(); 175 return out.toBytes();
175 } finally { 176 } finally {
176 putKryo(kryo); 177 putKryo(kryo);
...@@ -188,6 +189,7 @@ public final class KryoNamespace implements KryoFactory { ...@@ -188,6 +189,7 @@ public final class KryoNamespace implements KryoFactory {
188 Kryo kryo = getKryo(); 189 Kryo kryo = getKryo();
189 try { 190 try {
190 kryo.writeClassAndObject(out, obj); 191 kryo.writeClassAndObject(out, obj);
192 + out.flush();
191 } finally { 193 } finally {
192 putKryo(kryo); 194 putKryo(kryo);
193 } 195 }
......