fix(handler/router): add break to DelConnector after successful delete
This commit is contained in:
@@ -142,6 +142,7 @@ func (r *Router) DelConnector(host string, cid relay.ConnectorID) {
|
||||
for i, c := range connectors {
|
||||
if c.id.Equal(cid) {
|
||||
r.connectors[host] = append(connectors[:i], connectors[i+1:]...)
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user