refs #4823 Minor changes
This commit is contained in:
parent
acebc9a89f
commit
d9968a7115
2
utils.js
2
utils.js
|
@ -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':
|
||||||
|
|
Loading…
Reference in New Issue