From 51ff9b669dff18c9300b9fe5bdef91e7040edac0 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Tue, 29 Jan 2019 15:49:15 +0100 Subject: [HICN-17] Add possibility to destroy connection directly from stopEventsLoop with an additional parameter. Change-Id: I869a079a7b2f436768a62de66fd9281a7d1243cd Signed-off-by: Mauro Sardara --- libtransport/src/hicn/transport/interfaces/socket_consumer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libtransport/src/hicn/transport/interfaces/socket_consumer.cc') diff --git a/libtransport/src/hicn/transport/interfaces/socket_consumer.cc b/libtransport/src/hicn/transport/interfaces/socket_consumer.cc index 27ed4e65f..89411e92c 100644 --- a/libtransport/src/hicn/transport/interfaces/socket_consumer.cc +++ b/libtransport/src/hicn/transport/interfaces/socket_consumer.cc @@ -99,7 +99,7 @@ int ConsumerSocket::consume(const Name &name, transport_protocol_->start(receive_buffer); - return CONSUMER_READY; + return CONSUMER_FINISHED; } int ConsumerSocket::asyncConsume( @@ -115,7 +115,7 @@ int ConsumerSocket::asyncConsume( }); } - return CONSUMER_READY; + return CONSUMER_RUNNING; } void ConsumerSocket::asyncSendInterest(Interest::Ptr &&interest, -- cgit 1.2.3-korg