mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +01:00
Remove unnecessary synchronization in SmackReater.schedule()
The DelayQueue 'scheduledActions' is already thread-safe.
This commit is contained in:
parent
619b8e6f4a
commit
027cae3bd0
1 changed files with 1 additions and 3 deletions
|
@ -149,9 +149,7 @@ public class SmackReactor {
|
|||
long releaseTimeEpoch = System.currentTimeMillis() + unit.toMillis(delay);
|
||||
Date releaseTimeDate = new Date(releaseTimeEpoch);
|
||||
ScheduledAction scheduledAction = new ScheduledAction(runnable, releaseTimeDate, this);
|
||||
synchronized (scheduledActions) {
|
||||
scheduledActions.add(scheduledAction);
|
||||
}
|
||||
scheduledActions.add(scheduledAction);
|
||||
return scheduledAction;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue