Skip to content

Commit 9031a4c

Browse files
beiwei30chickenlj
authored andcommitted
Merge pull request #3466, Condition is not properly used.
fixes #1917
1 parent 813fed5 commit 9031a4c

File tree

1 file changed

+2
-2
lines changed
  • dubbo-registry/dubbo-registry-redis/src/main/java/org/apache/dubbo/registry/redis

1 file changed

+2
-2
lines changed

dubbo-registry/dubbo-registry-redis/src/main/java/org/apache/dubbo/registry/redis/RedisRegistry.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ public void run() {
564564
jedis = jedisPool.getResource();
565565
try {
566566
if (service.endsWith(Constants.ANY_VALUE)) {
567-
if (!first) {
567+
if (first) {
568568
first = false;
569569
Set<String> keys = jedis.keys(service);
570570
if (CollectionUtils.isNotEmpty(keys)) {
@@ -576,7 +576,7 @@ public void run() {
576576
}
577577
jedis.psubscribe(new NotifySub(jedisPool), service); // blocking
578578
} else {
579-
if (!first) {
579+
if (first) {
580580
first = false;
581581
doNotify(jedis, service);
582582
resetSkip();

0 commit comments

Comments
 (0)