made sure to release network resources in case of thrown of a Error
@@ -322,6 +322,9 @@ public class ONetworkProtocolBinary extends ONetworkProtocol {
collectionManager.clearChangedIds();
}
exception = t;
+ } catch (Error err) {
+ connection.release();
+ throw err;
}
}
if (exception != null) {
