Skip to content

Commit e497ee8

Browse files
committed
feat: update cancel stream tiout method
1 parent 1548af8 commit e497ee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/topcoder/dal/DBAccessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ private boolean debounce() {
379379

380380
private boolean cancelStreamTimeout() {
381381
ScheduledFuture<?> currentFuture = streamTimeoutFuture.get();
382-
return currentFuture == null || currentFuture.cancel(false);
382+
return currentFuture == null || currentFuture.isCancelled() || currentFuture.cancel(false);
383383
}
384384

385385
private ScheduledFuture<?> scheduleStreamTimeout() {

0 commit comments

Comments
 (0)