gui: Avoid pause between event polls (ref #3527)

We lose important events due to the frequency of ItemStarted /
ItemFinished events.
This commit is contained in:
Jakob Borg 2016-12-14 10:30:42 +01:00
parent 1ef75be1c6
commit b279e261a1

View File

@ -33,11 +33,9 @@ angular.module('syncthing.core')
lastID = lastEvent.id; lastID = lastEvent.id;
} }
$timeout(function () {
$http.get(urlbase + '/events?since=' + lastID) $http.get(urlbase + '/events?since=' + lastID)
.success(successFn) .success(successFn)
.error(errorFn); .error(errorFn);
}, 500, false);
} }
function errorFn (dummy) { function errorFn (dummy) {