Code Review
/
cicn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
b102174
)
Fixing on check of joinable threads
56/6156/1
author
Mauro Sardara
<
[email protected]
>
Wed, 12 Apr 2017 09:14:30 +0000
(11:14 +0200)
committer
Mauro Sardara
<
[email protected]
>
Wed, 12 Apr 2017 09:14:30 +0000
(11:14 +0200)
Change-Id: Iac78cd1ff0254cd6871afee1bc70f8dee8d42d1c
Signed-off-by: Mauro Sardara <
[email protected]
>
icnet/transport/icnet_socket_producer.cc
patch
|
blob
|
history
diff --git
a/icnet/transport/icnet_socket_producer.cc
b/icnet/transport/icnet_socket_producer.cc
index
9a870e5
..
994488a
100644
(file)
--- 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();