Instead of continue break from for

This commit is contained in:
TeoV
2020-07-20 10:09:35 +03:00
committed by Dan Christian Bogos
parent 68be0bf887
commit 3a2dbee292

View File

@@ -92,7 +92,7 @@ func (self *KamailioAgent) Connect() (err error) {
func (self *KamailioAgent) Shutdown() (err error) {
for conIndx, conn := range self.conns {
if conn == nil {
continue
break
}
if err = conn.Disconnect(); err != nil {
utils.Logger.Err(fmt.Sprintf("<%s> can't disconnect connection at index %v because: %s",