Add existence check for canceler.

This commit is contained in:
stuart nelson
2016-06-09 15:16:53 +02:00
parent cc64d65c2f
commit 8797be9f89

View File

@@ -131,7 +131,9 @@ function (angular, _, coreModule, config) {
if (requestIsLocal && firstAttempt && err.status === 401) {
return self.loginPing().then(function() {
options.retry = 1;
if (canceler) {
canceler.resolve();
}
return self.datasourceRequest(options);
});
}