QTfrontend/net/tcpBase.cpp
branchios-develop
changeset 13413 ba39a1d396c0
parent 13208 fcffacc6ee8f
child 13500 d9f9e66543d7
equal deleted inserted replaced
13411:6e8b807bda4b 13413:ba39a1d396c0
   226 
   226 
   227 void TCPBase::onEngineDeath(int exitCode, QProcess::ExitStatus exitStatus)
   227 void TCPBase::onEngineDeath(int exitCode, QProcess::ExitStatus exitStatus)
   228 {
   228 {
   229     Q_UNUSED(exitStatus);
   229     Q_UNUSED(exitStatus);
   230 
   230 
   231     if(m_connected)
   231     if(!m_connected) { // yes, it is intended to be like this
   232       ClientDisconnect();
   232       ClientDisconnect(); // need to do cleanup in case no connection occured,
       
   233       //if m_connected is true, it is done automatically in socket disconnect handler
       
   234     }
   233 
   235 
   234     // show error message if there was an error that was not an engine's
   236     // show error message if there was an error that was not an engine's
   235     // fatal error - because that one already sent a info via IPC
   237     // fatal error - because that one already sent a info via IPC
   236     if ((exitCode != 0) && (exitCode != 2))
   238     if ((exitCode != 0) && (exitCode != 2))
   237     {
   239     {