Skip to content

Commit

Permalink
1.10.4
Browse files Browse the repository at this point in the history
  • Loading branch information
noear committed Sep 28, 2022
1 parent 0c04a1d commit 69a7c1d
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
import org.slf4j.LoggerFactory;
import redis.clients.jedis.JedisPubSub;

import java.io.IOException;

/**
* @author noear
* @since 1.10
Expand All @@ -34,8 +36,16 @@ public void onMessage(String channel, String message) {
event.channel(eventChannelName);

onReceive(event);
}catch (Throwable e){
EventBus.push(e);
}catch (Throwable ex){
ex = Utils.throwableUnwrap(ex);

EventBus.push(ex);

if (ex instanceof RuntimeException) {
throw (RuntimeException) ex;
} else {
throw new RuntimeException(ex);
}
}
}

Expand Down

0 comments on commit 69a7c1d

Please sign in to comment.