mirror of https://github.com/apache/activemq.git
Merge pull request #503 from PascalSchumacher/AbstractMQTTSocket#getProtocolConverter_race_condition
AMQ-7439: AbstractMQTTSocket#getProtocolConverter: Race condition in …
This commit is contained in:
commit
d474580a34
|
@ -144,8 +144,9 @@ public abstract class AbstractMQTTSocket extends TransportSupport implements MQT
|
|||
if (protocolConverter == null) {
|
||||
synchronized(this) {
|
||||
if (protocolConverter == null) {
|
||||
protocolConverter = new MQTTProtocolConverter(this, brokerService);
|
||||
IntrospectionSupport.setProperties(protocolConverter, transportOptions);
|
||||
MQTTProtocolConverter newProtocolConverter = new MQTTProtocolConverter(this, brokerService);
|
||||
IntrospectionSupport.setProperties(newProtocolConverter, transportOptions);
|
||||
protocolConverter = newProtocolConverter;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue