Fix the reconnection backoff accidentally resetting when thrown out of certain IRC servers (#3328)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user