Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
don't wait for all futures to resolve before shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
rphmeier authored and gavofyork committed Aug 10, 2018
1 parent 782dc4b commit 84d14e9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions polkadot/cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ pub fn run<I, T, W>(args: I, worker: W, version: cli::VersionInfo) -> error::Res
true => run_until_exit(&mut runtime, service::new_light(config, executor)?, worker)?,
false => run_until_exit(&mut runtime, service::new_full(config, executor)?, worker)?,
}
// TODO: hard exit if this stalls?
runtime.shutdown_on_idle().wait().expect("failed to shut down event loop");
}
}
Ok(())
Expand Down

0 comments on commit 84d14e9

Please sign in to comment.