moved assignment of variable

This commit is contained in:
Joakim Kilby
2015-07-01 14:23:46 +02:00
parent ae877bbcb4
commit c9f3402cae

View File

@@ -725,11 +725,11 @@ namespace openspace {
void ParallelConnection::disconnect(){
//we're disconnecting
_performDisconnect.store(false);
if (_clientSocket != INVALID_SOCKET){
//we're disconnecting
_performDisconnect.store(false);
//must be run before trying to join communication threads, else the threads are stuck trying to receive data
closeSocket();