diff --git a/voxygen/src/singleplayer.rs b/voxygen/src/singleplayer.rs index 7184d39dd5..aee967caf4 100644 --- a/voxygen/src/singleplayer.rs +++ b/voxygen/src/singleplayer.rs @@ -47,14 +47,14 @@ impl Singleplayer { let paused = Arc::new(AtomicBool::new(false)); let paused1 = paused.clone(); - let server = Server::new(settings2).expect("Failed to create server instance!"); - - let server = match thread_pool { - Some(pool) => server.with_thread_pool(pool), - None => server, - }; - let thread = thread::spawn(move || { + let server = Server::new(settings2).expect("Failed to create server instance!"); + + let server = match thread_pool { + Some(pool) => server.with_thread_pool(pool), + None => server, + }; + run_server(server, receiver, paused1); });