Commit 6cf2b5a7 authored by Kenton Varda's avatar Kenton Varda

Don't kill the connection just because someone pipelined on a capability pointer…

Don't kill the connection just because someone pipelined on a capability pointer that turned out to be null.
parent 74e497c0
......@@ -2287,10 +2287,8 @@ private:
KJ_IF_MAYBE(p, base.pipeline) {
pipeline = p->get()->addRef();
} else {
KJ_FAIL_REQUIRE("PromisedAnswer.questionId is already finished or contained no "
"capabilities.") {
return nullptr;
}
pipeline = newBrokenPipeline(KJ_EXCEPTION(FAILED,
"Pipeline call on a request that returned no capabilities or was already closed."));
}
KJ_IF_MAYBE(ops, toPipelineOps(promisedAnswer.getTransform())) {
......
Markdown is supported
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