log exception and when we exhausted long polling pool

pull/868/head
Ryan Tharp 5 years ago
parent 69dcfa2845
commit c404d1c729

@ -100,6 +100,7 @@
);
} catch (e) {
// we'll try again anyway
window.log.error('http-resource pollServer error', e.code, e.message);
}
if (this.calledStop) {
@ -109,6 +110,10 @@
connected = false;
// Exhausted all our snodes urls, trying again later from scratch
setTimeout(() => {
window.log.info(
`Exhausted all our snodes urls, trying again in ${EXHAUSTED_SNODES_RETRY_DELAY /
1000}s from scratch`
);
this.pollServer();
}, EXHAUSTED_SNODES_RETRY_DELAY);
};

Loading…
Cancel
Save