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

Use evalLast() for better disembargo propagation handling.

parent f8142fc7
......@@ -2895,9 +2895,9 @@ private:
EmbargoId embargoId = context.getSenderLoopback();
// We need to insert an evalLater() here to make sure that any pending calls towards this
// We need to insert an evalLast() here to make sure that any pending calls towards this
// cap have had time to find their way through the event loop.
tasks.add(kj::evalLater(kj::mvCapture(
tasks.add(kj::evalLast(kj::mvCapture(
target, [this,embargoId](kj::Own<ClientHook>&& target) {
if (!connection.is<Connected>()) {
return;
......
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