Don't "safely" visit relays in RouterHive

pull/1312/head
Stephen Shelton 4 years ago
parent 56e2bc2c47
commit 159447b984
No known key found for this signature in database
GPG Key ID: EE4BADACCE8B631C

@ -148,7 +148,10 @@ namespace tooling
void
RouterHive::VisitRouter(Context_ptr ctx, std::function<void(Context_ptr)> visit)
{
LogicCall(ctx->logic, [visit, ctx]() { visit(ctx); });
// TODO: this should be called from each router's appropriate Logic thread, e.g.:
// LogicCall(ctx->logic, [visit, ctx]() { visit(ctx); });
// however, this causes visit calls to be deferred
visit(ctx);
}
HiveRouter*

Loading…
Cancel
Save