mirror of
https://github.com/znc/znc.git
synced 2026-06-28 14:01:35 +02:00
95d6041018
If connecting to a server failed without needing any time for DNS, the connect timer would busy loop over the networks, because a network re-inserted itself into the queue and the timer would try the network again. Fix this by moving the connection queue to a separate instance of std::list when the timer fires. From then on, we just iterate through that list while networks which want to try again add themselves to the "real" connection queue instead. We only have to make sure that any networks that are left in the old connection queue after the timer is done get prepended to the "real" connection queue. Signed-off-by: Uli Schlachter <psychon@znc.in>