Fix an issue with the update loop falsely breaking

This commit is contained in:
Kerollmops 2021-07-01 14:51:44 +02:00
parent 490836a7b3
commit fa5f8f9531
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -162,8 +162,7 @@ impl UpdateStore {
// function returns a Result and we must just unlock the loop on Result.
'outer: while timeout(duration, notification_receiver.recv())
.await
.transpose()
.map_or(false, |r| r.is_ok())
.map_or(true, |o| o.is_some())
{
loop {
match update_store_weak.upgrade() {