Skip to content

Commit

Permalink
fix an error
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyPickleZZ committed Apr 23, 2024
1 parent 769a879 commit 6997eec
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,10 @@ public List<JdbcGeneralResult> doInStatement(Statement statement) throws SQLExce
for (SqlExecutionListener listener : sortedListeners) {
long waitTs = System.currentTimeMillis() - startTs;
Long expectedTs = listener.getOnExecutionStartAfterMillis();
if (waitTs > expectedTs || !latch.await(expectedTs - waitTs, TimeUnit.MILLISECONDS)) {
if (!latch.await(expectedTs - waitTs, TimeUnit.MILLISECONDS)) {
listener.onExecutionStartAfter(sqlTuple, context);
} else {
break;
}
}
return null;
Expand Down

0 comments on commit 6997eec

Please sign in to comment.