adsb: use async delay

This commit is contained in:
Astro 2021-10-30 00:36:36 +02:00
parent 22132c0038
commit 4e1570b2fd
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ pub fn run(url: &'static str, locations: Locations) -> Receiver<Event> {
tx.send(event).await.unwrap();
}
std::thread::sleep(std::time::Duration::from_secs(1));
tokio::time::sleep(std::time::Duration::from_secs(1)).await;
}
});