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:
parent
5435078e58
commit
77d5aca62e
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user