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