File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1094,9 +1094,7 @@ class UpdateMachine {
1094
1094
backoffMachine = null ;
1095
1095
1096
1096
store.isLoading = false ;
1097
- // Dismiss existing errors, if any.
1098
- reportErrorToUserBriefly (null );
1099
- _accumulatedTransientFailureCount = 0 ;
1097
+ _clearReportingErrorsToUser ();
1100
1098
1101
1099
final events = result.events;
1102
1100
for (final event in events) {
@@ -1182,6 +1180,11 @@ class UpdateMachine {
1182
1180
1183
1181
int _accumulatedTransientFailureCount = 0 ;
1184
1182
1183
+ void _clearReportingErrorsToUser () {
1184
+ _accumulatedTransientFailureCount = 0 ;
1185
+ reportErrorToUserBriefly (null );
1186
+ }
1187
+
1185
1188
/// This only reports transient errors after reaching
1186
1189
/// a pre-defined threshold of retries.
1187
1190
void _maybeReportToUserTransientError (Object error) {
You can’t perform that action at this time.
0 commit comments