ARTEMIS-4972 Use Lock in start() for Binding Variables
This commit is contained in:
parent
ffafbf350a
commit
f9b912baf0
|
@ -322,10 +322,16 @@ public final class LocalGroupingHandler extends GroupHandlingAbstract {
|
|||
if (started)
|
||||
return;
|
||||
|
||||
lock.lock();
|
||||
|
||||
try {
|
||||
if (expectedBindings == null) {
|
||||
// just in case the component is restarted
|
||||
expectedBindings = new LinkedList<>();
|
||||
}
|
||||
} finally {
|
||||
lock.unlock();
|
||||
}
|
||||
|
||||
if (reaperPeriod > 0 && groupTimeout > 0) {
|
||||
if (reaperFuture != null) {
|
||||
|
|
Loading…
Reference in New Issue