Commit 5d712cd8 authored by Dorian Guillois's avatar Dorian Guillois
Browse files

Fix segfault on check::on_available.

parent ed6e1f26
......@@ -177,10 +177,6 @@ void check::on_available(sessions::session& sess) {
if (!_close()) {
log_info(logging::medium) << "channel of check "
<< cmd_id << " successfully closed";
if (!_cmds.empty()) {
_step = chan_open;
on_available(sess);
}
}
}
break ;
......@@ -324,6 +320,10 @@ bool check::_close() {
r.set_output(_stdout);
_send_result_and_unregister(r);
}
else {
_step = chan_open;
on_available(*_session);
}
}
}
// Attempt to close a closed channel.
......
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