File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -378,10 +378,17 @@ class Client extends EventEmitter {
378378 }
379379
380380 async iterateHostList ( client ) {
381+ logger . silly ( [ ...Client . hostServerInfo ] )
382+ logger . silly ( [ ...Client . failedHosts ] )
381383 let upHostsList = Client . hostServerInfo . keys ( )
382384 let upHost = upHostsList . next ( )
383385 let hostIsUp = false
384- while ( upHost . value !== undefined && ! hostIsUp && ! Client . failedHosts . has ( upHost . value ) ) {
386+ while ( upHost . value !== undefined && ! hostIsUp ) {
387+ if ( Client . failedHosts . has ( upHost . value ) ) {
388+ logger . silly ( upHost . value + " is present in failed host list, trying next host" )
389+ upHost = upHostsList . next ( )
390+ continue
391+ }
385392 client . host = upHost . value
386393 client . connectionParameters . host = client . host
387394 logger . debug ( "Trying to create control connection to " + client . host )
You can’t perform that action at this time.
0 commit comments