mirror of
https://github.com/openziti/ziti.git
synced 2026-10-12 15:28:05 +00:00
Merge pull request openziti/fabric#220 from openziti/fix-listener-close
If accept fails, ch will be nil
This commit is contained in:
@@ -90,7 +90,9 @@ func (ctrlAccepter *CtrlAccepter) Run() {
|
||||
|
||||
} else {
|
||||
log.Errorf("error accepting (%s)", err)
|
||||
_ = ch.Close()
|
||||
if err.Error() == "closed" {
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user