mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 07:12:27 +00:00
parent
fff9bf98eb
commit
4031568cdf
@ -178,7 +178,8 @@ angular.module('syncthing.core')
|
|||||||
|
|
||||||
console.log('HTTPError', arg);
|
console.log('HTTPError', arg);
|
||||||
online = false;
|
online = false;
|
||||||
if (!restarting) {
|
// We sometimes get arg == null from angularjs - no idea why
|
||||||
|
if (!restarting && arg) {
|
||||||
if (arg.status === 0) {
|
if (arg.status === 0) {
|
||||||
// A network error, not an HTTP error
|
// A network error, not an HTTP error
|
||||||
$scope.$emit(Events.OFFLINE);
|
$scope.$emit(Events.OFFLINE);
|
||||||
|
Loading…
Reference in New Issue
Block a user