Stop whichever endpoint is running.

This commit is contained in:
JoelKatz
2012-12-06 19:14:58 -08:00
parent 2c342d984f
commit dbb70e2bf9

View File

@@ -111,7 +111,11 @@ void WSDoor::stop()
{
if (mThread)
{
mEndpoint->stop();
if (mEndpoint)
mEndpoint->stop();
if (mSEndpoint)
mSEndpoint->stop();
mThread->join();
}