mirror of
https://github.com/chatmail/core.git
synced 2026-09-22 13:01:21 +03:00
fix: don't ignore join_next() errors in background_fetch_any()
join_next() failing means something went really wrong, e.g. panic inside a task. We also don't cancel the tasks other than by dropping JoinSet, so join_next() should never return an error.
This commit is contained in:
@@ -312,7 +312,7 @@ impl SchedulerState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
while let Some(fetched) = set.join_next().await {
|
while let Some(fetched) = set.join_next().await {
|
||||||
if let Ok(true) = fetched {
|
if fetched.context("background_fetch_any: Failed to join a task")? {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user