added unsubscribe to flow handler
This commit is contained in:
@@ -91,7 +91,9 @@ public class FlowMessageHandler extends AbstractReplyProducingMessageHandler {
|
||||
|
||||
ResponseMessageHandler responseMessageHandler = new ResponseMessageHandler(conversationId);
|
||||
flowOutputChannel.subscribe(responseMessageHandler);
|
||||
flowInputChannel.send(message, timeout);
|
||||
flowInputChannel.send(message, timeout);
|
||||
flowOutputChannel.unsubscribe(responseMessageHandler);
|
||||
|
||||
return responseMessageHandler.getResponse();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user