Unverified Commit af6c35f7 authored by André Silva's avatar André Silva Committed by GitHub
Browse files

network: guard validation network future under exit signal (#167)

parent 82fab47e
Pipeline #32048 passed with stages
in 11 minutes and 27 seconds
......@@ -232,6 +232,7 @@ impl<P, E, N, T> ParachainNetwork for ValidationNetwork<P, E, N, T> where
let table_router_clone = table_router.clone();
let executor = self.executor.clone();
let exit = self.exit.clone();
// spin up a task in the background that processes all incoming statements
// TODO: propagate statements on a timer?
......@@ -248,7 +249,7 @@ impl<P, E, N, T> ParachainNetwork for ValidationNetwork<P, E, N, T> where
table_router: table_router_clone,
};
executor.spawn(process_task);
executor.spawn(process_task.select(exit).then(|_| Ok(())));
});
table_router
......
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