Commit 4e234ef3 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Style

parent 282db62b
...@@ -1852,22 +1852,23 @@ int CVANetClientImpl::Disconnect() ...@@ -1852,22 +1852,23 @@ int CVANetClientImpl::Disconnect()
delete m_pCommandChannel; delete m_pCommandChannel;
m_pCommandChannel = NULL; m_pCommandChannel = NULL;
} }
if( m_pHeadChannel ) if( m_pHeadChannel )
{ {
m_pHeadChannel->Close(); m_pHeadChannel->Close();
delete m_pHeadChannel; delete m_pHeadChannel;
m_pHeadChannel = NULL; m_pHeadChannel = NULL;
} }
m_pEventReceiver->StopGently( true ); m_pEventReceiver->StopGently( true );
if( m_pEventChannel ) if( m_pEventChannel )
{ {
m_pEventChannel->Close(); m_pEventChannel->Close();
delete m_pEventChannel; delete m_pEventChannel;
m_pEventChannel = NULL; m_pEventChannel = NULL;
} }
m_bConnected = false; m_bConnected = false;
m_bShutdownFlag = false; m_bShutdownFlag = false;
return VA_NO_ERROR; return VA_NO_ERROR;
......
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