Moved handling of each thread's result to context manager
The patch fixes the random fails on fork tests problem. "Server is already running"
.
The complex_networks::run_networks
function did not properly expect the node to shut down, resulting in a too quick attempt to power the node back on before the node-server shut down properly.
Edited by Michał Kudela