mirror of
https://github.com/znc/znc.git
synced 2026-08-09 18:32:55 +02:00
Don't set ConnectDelay to zero
This commit is contained in:
@@ -991,6 +991,7 @@ bool CIRCNetwork::Connect() {
|
||||
return false;
|
||||
|
||||
if (CZNC::Get().GetServerThrottle(pServer->GetName())) {
|
||||
// Can't connect right now, schedule retry later
|
||||
CZNC::Get().AddNetworkToQueue(this);
|
||||
return false;
|
||||
}
|
||||
|
||||
+4
-1
@@ -2009,6 +2009,10 @@ protected:
|
||||
};
|
||||
|
||||
void CZNC::SetConnectDelay(unsigned int i) {
|
||||
if (i < 1) {
|
||||
// Don't hammer server with our failed connects
|
||||
i = 1;
|
||||
}
|
||||
if (m_uiConnectDelay != i && m_pConnectQueueTimer != NULL) {
|
||||
m_pConnectQueueTimer->Start(i);
|
||||
}
|
||||
@@ -2057,7 +2061,6 @@ void CZNC::AddNetworkToQueue(CIRCNetwork *pNetwork) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
m_lpConnectQueue.push_back(pNetwork);
|
||||
EnableConnectQueue();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user