Update mod.rs
This commit is contained in:
parent
b7798d3869
commit
99b8e28051
@ -88,12 +88,10 @@ impl Hypervisor {
|
|||||||
/// Does nothing when it is already started on module is inside the
|
/// Does nothing when it is already started on module is inside the
|
||||||
/// main binary
|
/// main binary
|
||||||
fn start_module(&self, module_id: IpcModuleId) {
|
fn start_module(&self, module_id: IpcModuleId) {
|
||||||
Self::match_module(&module_id).map(|binary_id|
|
Self::match_module(&module_id).map(|binary_id| {
|
||||||
{
|
|
||||||
let mut processes = self.processes.write().unwrap();
|
let mut processes = self.processes.write().unwrap();
|
||||||
{
|
{
|
||||||
let process = processes.get(binary_id);
|
if processes.get(binary_id).is_some() {
|
||||||
if process.is_some() {
|
|
||||||
// already started for another module
|
// already started for another module
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user