We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0859dd commit d839924Copy full SHA for d839924
src/browser/sync/web_socket_manager.ts
@@ -298,9 +298,9 @@ export class WebSocketManager {
298
msg += `: ${event.reason}`;
299
}
300
this.logger.log(msg);
301
- if (this.onServerDisconnectError) {
302
- // This callback is a unstable API, InternalServerErrors may be removed in the future
303
- // since they reflect a expected temporary outage. But until a quantitative measure
+ if (this.onServerDisconnectError && event.reason) {
+ // This callback is a unstable API, InternalServerErrors in particular may be removed
+ // since they reflect expected temporary downtime. But until a quantitative measure
304
// of uptime is reported this unstable API errs on the inclusive side.
305
this.onServerDisconnectError(msg);
306
0 commit comments