fix: properly destroy xwayland

This commit is contained in:
Nova
2023-08-06 11:19:42 -04:00
parent 11ecb0aebe
commit 74a2f7a249
2 changed files with 5 additions and 4 deletions

View File

@@ -234,7 +234,7 @@ fn main() {
let mut sleep_duration = Duration::ZERO;
debug_span!("StereoKit").in_scope(|| {
sk.run(
move |sk| {
|sk| {
let _span = debug_span!("StereoKit step");
let _span = _span.enter();
@@ -287,6 +287,8 @@ fn main() {
)
});
#[cfg(feature = "wayland")]
drop(wayland);
let _ = event_stop_tx.send(());
event_thread
.join()