Skip to content

Commit

Permalink
Simplify the logic
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed Jul 27, 2023
1 parent efea9d2 commit 35b8e5b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ protected boolean acquireMessagePartInProgressSemaphore(byte opCode, long timeou

int socketWrapperLockCount = socketWrapper.getLock().getHoldCount();
while (!messagePartInProgress.tryAcquire()) {
long timeout = timeoutExpiry - System.currentTimeMillis();
if (timeout < 0) {
if (timeoutExpiry < System.currentTimeMillis()) {
return false;
}
try {
Expand Down

0 comments on commit 35b8e5b

Please sign in to comment.