File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
npm-packages/convex/src/browser/sync Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -298,9 +298,9 @@ export class WebSocketManager {
298
298
msg += `: ${ event . reason } ` ;
299
299
}
300
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
301
+ if ( this . onServerDisconnectError && event . reason ) {
302
+ // This callback is a unstable API, InternalServerErrors in particular may be removed
303
+ // since they reflect expected temporary downtime . But until a quantitative measure
304
304
// of uptime is reported this unstable API errs on the inclusive side.
305
305
this . onServerDisconnectError ( msg ) ;
306
306
}
You can’t perform that action at this time.
0 commit comments