Remove unnecessary synchronization
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user