Fix android compilation, closure can run more than once

This commit is contained in:
Maximilian Ammann 2022-03-15 14:56:12 +01:00
parent 1a7512aa2a
commit 32a48fc46d

View File

@ -44,7 +44,7 @@ pub async fn run(
use tokio::task;
let state = task::block_in_place(|| {
Handle::current().block_on(async { RenderState::new(&window, style).await })
Handle::current().block_on(async { RenderState::new(&window, style.clone()).await })
});
maybe_state = Some(state);
return;