mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 07:11:08 +00:00
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:
parent
dde9d4c9eb
commit
bb15776ae6
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user