Skip to content

Commit 771ac0d

Browse files
committed
chore: moved assert to increase logging
1 parent 32b88a4 commit 771ac0d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

client/src/main/java/com/orientechnologies/orient/client/binary/OChannelBinaryAsynchClient.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,6 @@ public byte[] beginResponse(final int iRequesterId, final long iTimeout, final b
196196
setReadResponseTimeout();
197197
}
198198

199-
assert (currentSessionId == iRequesterId);
200-
201199
if (debug)
202200
OLogManager.instance()
203201
.debug(this, "%s - Session %d handle response", socket.getLocalAddress(), iRequesterId);
@@ -206,6 +204,7 @@ public byte[] beginResponse(final int iRequesterId, final long iTimeout, final b
206204
else tokenBytes = null;
207205

208206
currentMessage = readByte();
207+
assert (currentSessionId == iRequesterId);
209208
handleStatus(currentStatus, currentSessionId);
210209
return tokenBytes;
211210
} catch (OLockException e) {

0 commit comments

Comments
 (0)