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