Fix launcher to work with returning run_client functions (#860)

This commit is contained in:
Sönke 2022-10-24 21:40:24 +02:00 committed by GitHub
parent 1eb738695f
commit 332c2bc3f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -180,9 +180,7 @@ where
.build() .build()
.launch()?; .launch()?;
(self.run_client.take().unwrap())(state, mgr, bind_to.id) return (self.run_client.take().unwrap())(state, mgr, bind_to.id);
.expect("Client closure failed");
break;
} }
}; };
} }
@ -250,10 +248,7 @@ where
.build() .build()
.launch()?; .launch()?;
(self.run_client.take().unwrap())(state, mgr, core_id) return (self.run_client.take().unwrap())(state, mgr, core_id);
.expect("Client closure failed");
unreachable!("Fuzzer client code should never get here!");
} }
Err(std::env::VarError::NotPresent) => { Err(std::env::VarError::NotPresent) => {
// I am a broker // I am a broker