Commit a8225dc5 authored by louiz’'s avatar louiz’

Properly check for connecting or connected status before reconnecting

Note, in our context, is_connecting() includes the resolving part as well as
the actual connection (if we are using c-ares)

fix #3048
parent d79850f9
louloulibs @ 6c812cd8
Subproject commit b53ae922f48f1465a7fa61136f65ec39e38a452e Subproject commit 6c812cd86e31569db61cac4e30f77e296d207191
...@@ -55,8 +55,8 @@ IrcClient::~IrcClient() ...@@ -55,8 +55,8 @@ IrcClient::~IrcClient()
void IrcClient::start() void IrcClient::start()
{ {
if (this->connected || this->connecting) if (this->is_connecting() || this->is_connected())
return ; return;
std::string port; std::string port;
bool tls; bool tls;
std::tie(port, tls) = this->ports_to_try.top(); std::tie(port, tls) = this->ports_to_try.top();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment