Remove unnecessary synchronization

This commit is contained in:
Brokkonaut committed 2018-08-08 18:05:56 +02:00
1 parent 8dd9640c05
commit df2ccd62f3
1 file changed
+1 -1
@@ -559,7 +559,7 @@ public class Consumer extends TimerTask {
}
@Override
public synchronized void run() {
public void run() {
if (queue.isEmpty() || !lock.tryLock()) {
return;
}