Add comment to explain why we sleep a little after spawning the thread.
This commit is contained in:
parent
1c7103a512
commit
95f2611049
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ lazy_static! {
|
|||
let hdl = Arc::new(Mutex::new(Some(thread::spawn(move || {
|
||||
task::block_on(start(&config.clone())).unwrap();
|
||||
}))));
|
||||
println!("Server thread spawned");
|
||||
// Have a nap to let the scheduler start the new thread
|
||||
thread::sleep(std::time::Duration::from_millis(5));
|
||||
hdl
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue