Skip to content

Commit

Permalink
Merge pull request #3466, Condition is not properly used.
Browse files Browse the repository at this point in the history
fixes #1917
  • Loading branch information
beiwei30 authored and chickenlj committed Feb 18, 2019
1 parent 813fed5 commit 9031a4c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ public void run() {
jedis = jedisPool.getResource();
try {
if (service.endsWith(Constants.ANY_VALUE)) {
if (!first) {
if (first) {
first = false;
Set<String> keys = jedis.keys(service);
if (CollectionUtils.isNotEmpty(keys)) {
Expand All @@ -576,7 +576,7 @@ public void run() {
}
jedis.psubscribe(new NotifySub(jedisPool), service); // blocking
} else {
if (!first) {
if (first) {
first = false;
doNotify(jedis, service);
resetSkip();
Expand Down

0 comments on commit 9031a4c

Please sign in to comment.