mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Fix android compilation, closure can run more than once
This commit is contained in:
parent
1a7512aa2a
commit
32a48fc46d
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user