mirror of
https://git.meli.delivery/meli/meli
synced 2024-11-19 03:25:38 +00:00
bin: remove unwrap from timer thread
This commit is contained in:
parent
01e1f4111c
commit
6bdd9b07bb
10
src/bin.rs
10
src/bin.rs
@ -126,12 +126,10 @@ fn notify(
|
|||||||
.unwrap_or(false)
|
.unwrap_or(false)
|
||||||
{
|
{
|
||||||
let value = buf[0];
|
let value = buf[0];
|
||||||
sender
|
let _ = sender.send_timeout(
|
||||||
.send_timeout(
|
ThreadEvent::UIEvent(UIEvent::Timer(value)),
|
||||||
ThreadEvent::UIEvent(UIEvent::Timer(value)),
|
Duration::from_millis(2000),
|
||||||
Duration::from_millis(500),
|
);
|
||||||
)
|
|
||||||
.unwrap();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::thread::sleep(std::time::Duration::from_millis(100));
|
std::thread::sleep(std::time::Duration::from_millis(100));
|
||||||
|
Loading…
Reference in New Issue
Block a user