Comment explaining stopPollingPromise

pull/344/head
Beaudan 6 years ago
parent 6ef94fa43d
commit c53a35deeb

@ -255,6 +255,9 @@ class LokiMessageAPI {
async openRetrieveConnection(stopPollingPromise, callback) {
let stopPollingResult = false;
// When message_receiver restarts from onoffline/ononline events it closes
// http-resources, which will then resolve the stopPollingPromise with true. We then
// want to cancel these polling connections because new ones will be created
// eslint-disable-next-line more/no-then
stopPollingPromise.then(result => {
stopPollingResult = result;

Loading…
Cancel
Save