fix: Use spawn instead of spawn_local in anime animation callback

Closes #588
This commit is contained in:
I-Al-Istannen
2025-01-21 21:04:20 +01:00
parent bddccc696f
commit 9b82b875f1

View File

@@ -176,7 +176,7 @@ impl AniMe {
return Ok(true); // Do safe exit return Ok(true); // Do safe exit
} }
let inner = inner.clone(); let inner = inner.clone();
tokio::task::spawn_local(async move { tokio::task::spawn(async move {
inner inner
.write_data_buffer(frame) .write_data_buffer(frame)
.await .await