Skip to content

Commit

Permalink
FIX: dispose deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
febret committed Feb 5, 2015
1 parent 2db57f1 commit 1ea18ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/omega/MissionControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,9 @@ void MissionControlClient::dispose()
{
if(myConnection->getState() == TcpConnection::ConnectionOpen)
{
myConnection->goodbyeServer();
// SInce we are disposing this connection, just send a goodbye
// message without waiting for the actual connection to close.
myConnection->sendMessage(MissionControlMessageIds::Bye, NULL, 0);
}
myConnection = NULL;
}
Expand Down

0 comments on commit 1ea18ba

Please sign in to comment.