File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -1042,21 +1042,14 @@ class UpdateMachine {
1042
1042
assert (debugLog ('… Event queue replaced.' ));
1043
1043
return ;
1044
1044
1045
- case Server5xxException ():
1046
- assert (debugLog ('Transient error polling event queue for $store : $e \n '
1047
- 'Backing off, then will retry…' ));
1048
- maybeReportToUserTransientError (e);
1049
- await (backoffMachine ?? = BackoffMachine ()).wait ();
1050
- if (_disposed) return ;
1051
- assert (debugLog ('… Backoff wait complete, retrying poll.' ));
1052
- continue ;
1053
-
1054
1045
case NetworkException ():
1046
+ case Server5xxException ():
1055
1047
assert (debugLog ('Transient error polling event queue for $store : $e \n '
1056
1048
'Backing off, then will retry…' ));
1057
- if (e.cause is ! SocketException ) {
1058
- // Heuristic check to only report interesting errors to the user.
1049
+ if (e is NetworkException && e .cause is SocketException ) {
1050
+ // The error is boring; skip reporting it to the user.
1059
1051
// A [SocketException] is common when the app returns from sleep.
1052
+ } else {
1060
1053
maybeReportToUserTransientError (e);
1061
1054
}
1062
1055
await (backoffMachine ?? = BackoffMachine ()).wait ();
You can’t perform that action at this time.
0 commit comments