提交 29f6ab04 编写于 作者: S Sandeep Somavarapu

#88577 do not count on auth error

上级 31e32b88
......@@ -72,7 +72,10 @@ export class UserDataAutoSync extends Disposable implements IUserDataAutoSyncSer
await this.userDataSyncService.sync();
this.successiveFailures = 0;
} catch (e) {
this.successiveFailures++;
// Do not count on auth errors
if (!(e instanceof UserDataSyncError && e.code === UserDataSyncErrorCode.Unauthroized)) {
this.successiveFailures++;
}
this.logService.error(e);
this._onError.fire(e instanceof UserDataSyncError ? { code: e.code, source: e.source } : { code: UserDataSyncErrorCode.Unknown });
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册