Keep a "connected" state in the SocketHandler class

This commit is contained in:
Florent Le Coz
2014-01-04 01:59:35 +01:00
parent 483e17020d
commit aa53276859
4 changed files with 16 additions and 2 deletions
-1
View File
@@ -50,7 +50,6 @@ IrcClient* Bridge::get_irc_client(const std::string& hostname, const std::string
this->irc_clients.emplace(hostname, std::make_shared<IrcClient>(hostname, username, this));
std::shared_ptr<IrcClient> irc = this->irc_clients.at(hostname);
this->poller->add_socket_handler(irc);
irc->start();
return irc.get();
}
}