Fix a bug in the way containers are stopped

This commit is contained in:
Soby Chacko
2022-09-02 17:48:58 -04:00
parent 07dc259665
commit f590a6d70e

View File

@@ -167,7 +167,7 @@ public abstract class AbstractPulsarMessageListenerContainer<T> implements Pulsa
@Override
public void stop() {
synchronized (this.lifecycleMonitor) {
if (!isRunning()) {
if (isRunning()) {
doStop();
}
}