+ minor improvements to RedisMLC

This commit is contained in:
Costin Leau
2011-07-27 11:35:45 +03:00
parent ac036ae322
commit 8ea1302641
2 changed files with 4 additions and 3 deletions

View File

@@ -203,8 +203,9 @@ public class RedisMessageListenerContainer implements InitializingBean, Disposab
if (isRunning()) {
running = false;
synchronized (monitor) {
boolean shouldWait = listening;
subscriptionTask.cancel();
if (listening) {
if (shouldWait) {
try {
monitor.wait(initWait);
} catch (InterruptedException ex) {