- attempt to leave irc channel in cases where the client thread is shutting down for unknown reasons

This commit is contained in:
Mark Vejvoda 2012-11-19 17:17:50 +00:00
parent e54aabd713
commit a74295733d
1 changed files with 3 additions and 0 deletions

View File

@ -401,6 +401,9 @@ void MenuStateMasterserver::IRC_CallbackEvent(IRCEventType evt, const char* orig
MutexSafeWrapper safeMutexIRCPtr(&mutexIRCClient,string(extractFileFromDirectoryPath(__FILE__).c_str()) + "_" + intToStr(__LINE__));
if(ircClient != NULL) {
if(evt == IRC_evt_exitThread) {
ircClient->leaveChannel();
ircClient->setCallbackObj(NULL);
ircClient = NULL;
}
else if(evt == IRC_evt_chatText) {