Corrected udp client stopping if not started

parent 92a41ccd
......@@ -29,7 +29,8 @@ void UDPClient::stop()
discoverSocket = ENET_SOCKET_NULL;
dataSocket = ENET_SOCKET_NULL;
networkThread.join();
if(networkThread.joinable())
networkThread.join();
}
ENetSocket UDPClient::initSocket(enet_uint16 port, bool bindSocket)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment