Checking for unitialized pointer

parent bce20e8a
......@@ -429,7 +429,8 @@ int CVANetServerImpl::Finalize()
std::cout << "VANetServer: Shutting down" << std::endl;
#endif
m_pConnectionAccepter->Abort();
if( m_pConnectionAccepter )
m_pConnectionAccepter->Abort();
delete m_pConnectionAccepter;
m_pConnectionAccepter = NULL;
......
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