This commit is contained in:
Dominik Maier 2021-03-03 16:19:51 +01:00
parent 909d0f8574
commit 69c3581f1a
2 changed files with 7 additions and 6 deletions

View File

@ -65,8 +65,8 @@ use serde::{Deserialize, Serialize};
#[cfg(feature = "std")] #[cfg(feature = "std")]
use std::{ use std::{
env, fs, env, fs,
net::SocketAddr,
io::{Read, Write}, io::{Read, Write},
net::SocketAddr,
net::{TcpListener, TcpStream}, net::{TcpListener, TcpStream},
thread, thread,
}; };

View File

@ -514,7 +514,6 @@ where
// We start ourself as child process to actually fuzz // We start ourself as child process to actually fuzz
if std::env::var(_ENV_FUZZER_SENDER).is_err() { if std::env::var(_ENV_FUZZER_SENDER).is_err() {
#[cfg(target_os = "android")] #[cfg(target_os = "android")]
{ {
let path = std::env::current_dir()?; let path = std::env::current_dir()?;
@ -524,7 +523,9 @@ where
)?; )?;
}; };
#[cfg(not(target_os = "android"))] #[cfg(not(target_os = "android"))]
{mgr = LlmpEventManager::<I, S, SH, ST>::new_on_port(stats, broker_port)?}; {
mgr = LlmpEventManager::<I, S, SH, ST>::new_on_port(stats, broker_port)?
};
if mgr.is_broker() { if mgr.is_broker() {
// Yep, broker. Just loop here. // Yep, broker. Just loop here.