Skip to content

Commit

Permalink
stop response actor after forwarding response
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
  • Loading branch information
dguggemos committed Apr 18, 2018
1 parent d5c099d commit fb94b08
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -67,6 +67,7 @@ public Receive createReceive() {
log.debug("Received response of type '{}', forwarding to original sender '{}'.", response.getType(),
sender);
sender.tell(response, getSender());
getContext().stop(getSelf());
})
.match(ReceiveTimeout.class, r -> {
LogUtil.enhanceLogWithCorrelationId(log, correlationId);
Expand Down

0 comments on commit fb94b08

Please sign in to comment.