mirror of https://github.com/rwf2/Rocket.git
Freeze managed state before launch.
This commit is contained in:
parent
76135e86c9
commit
18e1a77353
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue