mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fix deadlock, thanks hemirt
This commit is contained in:
parent
6acaa56442
commit
880fe7e81c
|
@ -169,7 +169,8 @@ void IrcManager::beginConnecting()
|
||||||
this->readConnection->moveToThread(QCoreApplication::instance()->thread());
|
this->readConnection->moveToThread(QCoreApplication::instance()->thread());
|
||||||
|
|
||||||
for (auto &channel : ChannelManager::getInstance().getItems()) {
|
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();
|
this->writeConnection->open();
|
||||||
|
|
Loading…
Reference in a new issue