mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 09:47:50 +03:00
refactor(updater): don't cancel token when uri fetch error occurred
This commit is contained in:
@@ -65,7 +65,11 @@ impl ScheduleProvider for Wrapper {
|
|||||||
this.snapshot = Arc::new(snapshot);
|
this.snapshot = Arc::new(snapshot);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Err(updater::error::Error::QueryUrlFailed(updater::error::QueryUrlError::UriFetchFailed)) => {},
|
||||||
|
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
|
sentry::capture_error(&err);
|
||||||
|
|
||||||
cancellation_token.cancel();
|
cancellation_token.cancel();
|
||||||
return Err(err.into());
|
return Err(err.into());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user