mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'songtronix/fix-singleplayer-loading' into 'master'
fix: show loading screen for singleplayer See merge request veloren/veloren!1189
This commit is contained in:
commit
26d47304e0
@ -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);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user