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:
+1
-1
Submodule louloulibs updated: b53ae922f4...6c812cd86e
@@ -55,7 +55,7 @@ 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;
|
||||||
|
|||||||
Reference in New Issue
Block a user