Fix the reconnection backoff accidentally resetting when thrown out of certain IRC servers (#3328)

This commit is contained in:
pajlada
2021-10-31 15:44:38 +01:00
committed by GitHub
parent d7337ff69f
commit 4b903d7fcf
3 changed files with 8 additions and 4 deletions
+5 -2
View File
@@ -108,9 +108,12 @@ IrcConnection::IrcConnection(QObject *parent)
QObject::connect(this, &Communi::IrcConnection::messageReceived,
[this](Communi::IrcMessage *message) {
// This connection is probably still alive
this->recentlyReceivedMessage_ = true;
this->reconnectBackoff_.reset();
if (message->command() == "372") // MOTD
{
this->reconnectBackoff_.reset();
}
});
}