refs #4823 Minor changes

This commit is contained in:
Guillermo Bonet 2023-05-22 11:46:01 +02:00
parent acebc9a89f
commit d9968a7115
1 changed files with 2 additions and 0 deletions

View File

@ -552,8 +552,10 @@ export async function vnRequest(method, url, data, headers, spinner) {
switch (err.code) { switch (err.code) {
case 'ECONNRESET': // Client network socket TLS case 'ECONNRESET': // Client network socket TLS
case 'EAI_AGAIN': // getaddrinfo case 'EAI_AGAIN': // getaddrinfo
if (spinner) spinner.warn();
warning(err); warning(err);
await sleep(1000); await sleep(1000);
if (spinner) spinner.start();
break; break;
case 'ECONNABORTED': case 'ECONNABORTED':
case 'ECONNREFUSED': case 'ECONNREFUSED':