mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Check the error return from listener close
This commit is contained in:
		@@ -208,7 +208,10 @@ func (poc PortOpenCheck) Check() (warnings, errorList []error) {
 | 
				
			|||||||
		errorList = []error{errors.Errorf("Port %d is in use", poc.port)}
 | 
							errorList = []error{errors.Errorf("Port %d is in use", poc.port)}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if ln != nil {
 | 
						if ln != nil {
 | 
				
			||||||
		ln.Close()
 | 
							if err = ln.Close(); err != nil {
 | 
				
			||||||
 | 
								warnings = append(warnings,
 | 
				
			||||||
 | 
									errors.Errorf("when closing port %d, encountered %v", poc.port, err))
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return nil, errorList
 | 
						return nil, errorList
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user