From 880fe7e81cbc6ed5801957f478acc6a6ddcc38ff Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Tue, 6 Jun 2017 16:10:16 +0200 Subject: [PATCH] fix deadlock, thanks hemirt --- src/ircmanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ircmanager.cpp b/src/ircmanager.cpp index f51c1a4fe..7b3a3c47f 100644 --- a/src/ircmanager.cpp +++ b/src/ircmanager.cpp @@ -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();