allthingssecurity commented on code in PR #30815:
URL: https://github.com/apache/camel/pull/30815#discussion_r4703678461


##########
components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConsumer.java:
##########
@@ -79,6 +83,13 @@ public SmppConsumer(SmppEndpoint endpoint, SmppConfiguration 
config, Processor p
             }
 
             if (newState.equals(SessionState.UNBOUND) || 
newState.equals(SessionState.CLOSED)) {
+                if (source == bindingSession.get()) {

Review Comment:
   Done in 7c469cf4e921. jsmpp always passes the session as the source, but the 
check costs nothing and a null source can never be the session being bound. 
SmppConsumerTest has a new test that passes a null source and checks the 
reconnect.



##########
components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppProducer.java:
##########
@@ -75,6 +79,13 @@ public SmppProducer(SmppEndpoint endpoint, SmppConfiguration 
config) {
             }
 
             if (newState.equals(SessionState.UNBOUND) || 
newState.equals(SessionState.CLOSED)) {
+                if (source == bindingSession.get()) {

Review Comment:
   Done in 7c469cf4e921, with the same test in SmppProducerTest.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to