mirror of
https://github.com/louis-e/arnis.git
synced 2025-12-23 22:37:56 -05:00
Release snowman lock before map preview generation
This commit is contained in:
@@ -966,7 +966,9 @@ fn gui_start_generation(
|
||||
&args,
|
||||
generation_options,
|
||||
);
|
||||
// Session lock will be automatically released when _session_lock goes out of scope
|
||||
// Explicitly release session lock before returning so Minecraft can open the world
|
||||
// while map preview generates in the background
|
||||
drop(_session_lock);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
@@ -1005,7 +1007,9 @@ fn gui_start_generation(
|
||||
&args,
|
||||
generation_options.clone(),
|
||||
);
|
||||
// Session lock will be automatically released when _session_lock goes out of scope
|
||||
// Explicitly release session lock before returning so Minecraft can open the world
|
||||
// while map preview generates in the background
|
||||
drop(_session_lock);
|
||||
Ok(())
|
||||
}
|
||||
Err(e) => {
|
||||
|
||||
Reference in New Issue
Block a user