bin: remove unwrap from timer thread

master
Manos Pitsidianakis 2020-06-22 17:29:47 +03:00
parent 01e1f4111c
commit 6bdd9b07bb
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 4 additions and 6 deletions

View File

@ -126,12 +126,10 @@ fn notify(
.unwrap_or(false)
{
let value = buf[0];
sender
.send_timeout(
ThreadEvent::UIEvent(UIEvent::Timer(value)),
Duration::from_millis(500),
)
.unwrap();
let _ = sender.send_timeout(
ThreadEvent::UIEvent(UIEvent::Timer(value)),
Duration::from_millis(2000),
);
}
std::thread::sleep(std::time::Duration::from_millis(100));