~singpolyma/biboumi

a8225dc54c019788722bda3bda8d55151c1ccdef — Florent Le Coz 8 years ago d79850f
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
2 files changed, 3 insertions(+), 3 deletions(-)

M louloulibs
M src/irc/irc_client.cpp
M louloulibs => louloulibs +1 -1
@@ 1,1 1,1 @@
Subproject commit b53ae922f48f1465a7fa61136f65ec39e38a452e
Subproject commit 6c812cd86e31569db61cac4e30f77e296d207191

M src/irc/irc_client.cpp => src/irc/irc_client.cpp +2 -2
@@ 55,8 55,8 @@ IrcClient::~IrcClient()

void IrcClient::start()
{
  if (this->connected || this->connecting)
    return ;
  if (this->is_connecting() || this->is_connected())
    return;
  std::string port;
  bool tls;
  std::tie(port, tls) = this->ports_to_try.top();