1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Minor tweals

This commit is contained in:
Laurent Cozic
2018-03-27 17:48:55 +01:00
parent 2280fb5c43
commit 4f5e7367d0
3 changed files with 15 additions and 11 deletions

View File

@ -85,6 +85,9 @@ shim.fetchRequestCanBeRetried = function(error) {
// Code: ETIMEDOUT
if (error.code === 'ETIMEDOUT') return true;
// ECONNREFUSED is generally temporary
if (error.code === 'ECONNREFUSED') return true;
return false;
};