From: Andrew C. <ac...@us...> - 2003-02-13 23:21:15
|
Update of /cvsroot/planeshift/planeshift/src/common/net In directory sc8-pr-cvs1:/tmp/cvs-serv30612/src/common/net Modified Files: msghandler.cpp Log Message: Fix for trying to stop a thread that hasn't been initialized yet. Index: msghandler.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/common/net/msghandler.cpp,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** msghandler.cpp 2 Feb 2003 22:44:57 -0000 1.38 --- msghandler.cpp 13 Feb 2003 23:21:11 -0000 1.39 *************** *** 31,39 **** queue = NULL; mutex = csMutex::Create (true); } MsgHandler::~MsgHandler() { ! thread->Stop (); // Check if somethings have been forgotten to be unsubscribed... --- 31,41 ---- queue = NULL; mutex = csMutex::Create (true); + thread = NULL; } MsgHandler::~MsgHandler() { ! if ( thread ) ! thread->Stop (); // Check if somethings have been forgotten to be unsubscribed... |