Freeze managed state before launch.

This commit is contained in:
Sergio Benitez 2018-04-26 19:04:31 -07:00
parent 76135e86c9
commit 18e1a77353
2 changed files with 5 additions and 2 deletions

View File

@ -22,8 +22,8 @@ yansi = "0.4"
log = "0.3"
url = "1"
toml = "0.4.2"
num_cpus = "1"
state = "0.4"
num_cpus = "1.0"
state = "0.4.1"
time = "0.1"
memchr = "1"
base64 = "0.6"

View File

@ -672,6 +672,9 @@ impl Rocket {
Err(e) => return LaunchError::from(e)
}
// Freeze managed state for synchronization-free accesses later.
self.state.freeze();
// Run the launch fairings.
self.fairings.handle_launch(&self);