fix deadlock, thanks hemirt

This commit is contained in:
Rasmus Karlsson 2017-06-06 16:10:16 +02:00
parent 6acaa56442
commit 880fe7e81c

View file

@ -169,7 +169,8 @@ void IrcManager::beginConnecting()
this->readConnection->moveToThread(QCoreApplication::instance()->thread());
for (auto &channel : ChannelManager::getInstance().getItems()) {
this->joinChannel(channel->getName());
this->writeConnection->sendRaw("JOIN #" + channel->getName());
this->readConnection->sendRaw("JOIN #" + channel->getName());
}
this->writeConnection->open();