- attempt to fix issue# 89

This commit is contained in:
SoftCoder
2015-12-12 22:01:48 -08:00
parent 4f5ecb13e5
commit b83414380c
2 changed files with 16 additions and 15 deletions

View File

@@ -665,7 +665,7 @@ std::vector<string> IRCThread::GetIRCConnectedNickList(string target, bool waitF
bool IRCThread::isConnected(bool mutexLockRequired) {
bool ret = false;
if(this->getQuitStatus() == false) {
MutexSafeWrapper safeMutex(NULL,string(__FILE__) + "_" + intToStr(__LINE__));
if(mutexLockRequired == true) {
safeMutex.setMutex(&mutexIRCSession);
@@ -681,6 +681,7 @@ bool IRCThread::isConnected(bool mutexLockRequired) {
}
ret = (irc_is_connected(ircSession) != 0);
safeMutex1.ReleaseLock();
}
#endif
}