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 {
378
378
}
379
379
380
380
async iterateHostList ( client ) {
381
+ logger . silly ( [ ...Client . hostServerInfo ] )
382
+ logger . silly ( [ ...Client . failedHosts ] )
381
383
let upHostsList = Client . hostServerInfo . keys ( )
382
384
let upHost = upHostsList . next ( )
383
385
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
+ }
385
392
client . host = upHost . value
386
393
client . connectionParameters . host = client . host
387
394
logger . debug ( "Trying to create control connection to " + client . host )
You can’t perform that action at this time.
0 commit comments