Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -598,9 +598,11 @@ protected final boolean renew(long expireAfter) {
return res;
}

/* This method can be called by more than 1 thread, thus we need to make sure that it is safe*/
protected final void stopRenew() {
if (this.renewFuture != null) {
this.renewFuture.cancel(true);
ScheduledFuture<?> renewFutureToCancel = this.renewFuture;
if (renewFutureToCancel != null) {
renewFutureToCancel.cancel(true);
this.renewFuture = null;
}
}
Expand Down