mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 23:45:14 +02:00
- attempt to leave irc channel in cases where the client thread is shutting down for unknown reasons
This commit is contained in:
@@ -401,6 +401,9 @@ void MenuStateMasterserver::IRC_CallbackEvent(IRCEventType evt, const char* orig
|
|||||||
MutexSafeWrapper safeMutexIRCPtr(&mutexIRCClient,string(extractFileFromDirectoryPath(__FILE__).c_str()) + "_" + intToStr(__LINE__));
|
MutexSafeWrapper safeMutexIRCPtr(&mutexIRCClient,string(extractFileFromDirectoryPath(__FILE__).c_str()) + "_" + intToStr(__LINE__));
|
||||||
if(ircClient != NULL) {
|
if(ircClient != NULL) {
|
||||||
if(evt == IRC_evt_exitThread) {
|
if(evt == IRC_evt_exitThread) {
|
||||||
|
ircClient->leaveChannel();
|
||||||
|
ircClient->setCallbackObj(NULL);
|
||||||
|
|
||||||
ircClient = NULL;
|
ircClient = NULL;
|
||||||
}
|
}
|
||||||
else if(evt == IRC_evt_chatText) {
|
else if(evt == IRC_evt_chatText) {
|
||||||
|
Reference in New Issue
Block a user