Author: veithm
Date: Fri May 15 15:09:20 2015
New Revision: 1679592
URL: http://svn.apache.org/r1679592
Log:
Join the TcpListener thread in case of a stopWait signal
Change-Id: Ic336c46c9ceecdf4fe52c3c4198f5c6b158ac7f8
Modified:
etch/trunk/binding-cpp/runtime/src/main/transport/EtchTcpListener.cpp
Modified: etch/trunk/binding-cpp/runtime/src/main/transport/EtchTcpListener.cpp
URL:
http://svn.apache.org/viewvc/etch/trunk/binding-cpp/runtime/src/main/transport/EtchTcpListener.cpp?rev=1679592&r1=1679591&r2=1679592&view=diff
==============================================================================
--- etch/trunk/binding-cpp/runtime/src/main/transport/EtchTcpListener.cpp
(original)
+++ etch/trunk/binding-cpp/runtime/src/main/transport/EtchTcpListener.cpp Fri
May 15 15:09:20 2015
@@ -233,6 +233,7 @@ status_t EtchTcpListener::transportContr
close();
ETCH_LOG_DEBUG(mRuntime->getLogger(),
mRuntime->getLogger().getTransportContext(), "Stop and wait command received
and EtchTcpListener sets the stop flag");
status_t ret = waitDown(((EtchInt32*) value.get())->get());
+ mThread->join();
return ret;
}