Commit bfa344bb authored by Seblu's avatar Seblu
Browse files

Fix connection error message

parent 335fbce4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -79,12 +79,12 @@ void Connection::connect_(const char *addr, int port) {
  pthread_mutex_unlock(&mtx_socket);
  if (con == -1) {
    disconnect_();
    S << "Unable to connect: " << strerror(errno);
    S << "Unable to connect: " << strerror(errno) << ".\n";
    return;
  }

  S << "Connected to " << h->h_name << " (" << inet_ntoa(*(struct in_addr*)h->h_addr)
    << ") on port " << port << "...\n";
    << ") on port " << port << ".\n";
}

void Connection::disconnect_() {