1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 08:18:52 -05:00

Fix compiler issues

This commit is contained in:
Reinhard Pointner 2016-04-21 01:22:35 +08:00
parent 5435078e58
commit 77d5aca62e

View File

@ -25,7 +25,11 @@ public class FloodLimit {
public ScheduledFuture<?> acquirePermit() throws InterruptedException { public ScheduledFuture<?> acquirePermit() throws InterruptedException {
permits.acquire(); permits.acquire();
return TIMER.schedule(permits::release, releaseDelay, timeUnit); return TIMER.schedule(this::releasePermit, releaseDelay, timeUnit);
}
protected void releasePermit() {
permits.release();
} }
} }