mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Instead of continue break from for
This commit is contained in:
committed by
Dan Christian Bogos
parent
68be0bf887
commit
3a2dbee292
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user