diff options
author | Simon Frei <freisim93@gmail.com> | 2022-04-25 19:15:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-25 19:15:14 +0200 |
commit | 4031568cdf462df24977427935e029a4d337be36 (patch) | |
tree | 98f2015a37b08f9d1c3b9ee376b206b7fbf58850 | |
parent | fff9bf98eb8c5a3e9e58a7f81b2019bc22dd2132 (diff) |
gui: Bandaid for null http errors (fixes #8261) (#8305)v1.20.0-rc.3v1.20.0
-rwxr-xr-x | gui/default/syncthing/core/syncthingController.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 939ff58596..721a5a437a 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -178,7 +178,8 @@ angular.module('syncthing.core') console.log('HTTPError', arg); online = false; - if (!restarting) { + // We sometimes get arg == null from angularjs - no idea why + if (!restarting && arg) { if (arg.status === 0) { // A network error, not an HTTP error $scope.$emit(Events.OFFLINE); |