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: ...@@ -2287,10 +2287,8 @@ private:
KJ_IF_MAYBE(p, base.pipeline) { KJ_IF_MAYBE(p, base.pipeline) {
pipeline = p->get()->addRef(); pipeline = p->get()->addRef();
} else { } else {
KJ_FAIL_REQUIRE("PromisedAnswer.questionId is already finished or contained no " pipeline = newBrokenPipeline(KJ_EXCEPTION(FAILED,
"capabilities.") { "Pipeline call on a request that returned no capabilities or was already closed."));
return nullptr;
}
} }
KJ_IF_MAYBE(ops, toPipelineOps(promisedAnswer.getTransform())) { 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