Commit ebdcb2a5 authored by Matthieu Kermagoret's avatar Matthieu Kermagoret
Browse files

Connector SSH: added removals from multiplexer.

parent 5cb8b134
......@@ -434,7 +434,7 @@ bool check::_read() {
*/
void check::_send_result_and_unregister(result const& r) {
// Unregister from multiplexer.
// XXX
multiplexer::instance().handle_manager::remove(this);
// Unregister from session.
_session->unlisten(this);
......
......@@ -71,7 +71,8 @@ session::~session() throw () {
*/
void session::close() {
// Unregister with multiplexer.
// XXX
multiplexer::instance().handle_manager::remove(&_socket);
multiplexer::instance().handle_manager::remove(this);
// Notify listeners.
for (std::list<listener*>::iterator
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment