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
This commit is contained in:
Florent Le Coz committed 2015-04-21 15:38:22 +02:00
1 parent d79850f984
commit a8225dc54c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@ IrcClient::~IrcClient()
void IrcClient::start()
{
if (this->connected || this->connecting)
if (this->is_connecting() || this->is_connected())
return;
std::string port;
bool tls;