Merge pull request openziti/fabric#220 from openziti/fix-listener-close

If accept fails, ch will be nil
This commit is contained in:
Paul Lorenz
2021-03-18 14:07:57 -04:00
committed by GitHub
+3 -1
View File
@@ -90,7 +90,9 @@ func (ctrlAccepter *CtrlAccepter) Run() {
} else {
log.Errorf("error accepting (%s)", err)
_ = ch.Close()
if err.Error() == "closed" {
return
}
}
}
}