diff options
Diffstat (limited to 'icnet')
-rw-r--r-- | icnet/transport/icnet_socket_producer.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/icnet/transport/icnet_socket_producer.cc b/icnet/transport/icnet_socket_producer.cc index 9a870e5c..994488a0 100644 --- a/icnet/transport/icnet_socket_producer.cc +++ b/icnet/transport/icnet_socket_producer.cc @@ -48,7 +48,10 @@ ProducerSocket::ProducerSocket(Name prefix) ProducerSocket::~ProducerSocket() { processing_thread_stop_ = true; portal_->stopEventsLoop(); - processing_thread_.join(); + + if (processing_thread_.joinable()) { + processing_thread_.join(); + } if (listening_thread_.joinable()) { listening_thread_.join(); |