openvidu-server: remove final from UpdatableTimerTask methods

pull/711/head
pabloFuente 2022-03-26 16:05:38 +01:00
parent b6b2663cf3
commit 07aa22ed1d
1 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ public class UpdatableTimerTask extends TimerTask {
this.oldP = oldP; this.oldP = oldP;
} }
public final void updateTimer() { public void updateTimer() {
Long p = period.get(); Long p = period.get();
Objects.requireNonNull(p); Objects.requireNonNull(p);
if (oldP == null || !oldP.equals(p)) { if (oldP == null || !oldP.equals(p)) {
@ -54,8 +54,8 @@ public class UpdatableTimerTask extends TimerTask {
} }
} }
public final void cancelTimer() { public void cancelTimer() {
cancel(); super.cancel();
timer.cancel(); timer.cancel();
timer.purge(); timer.purge();
} }