mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Close channel instead of calling Shutdown() on Reload()
This commit is contained in:
committed by
Dan Christian Bogos
parent
cf720550cb
commit
44b144ff02
@@ -86,7 +86,9 @@ func (dns *DNSAgent) Reload() (err error) {
|
||||
dns.Lock()
|
||||
defer dns.Unlock()
|
||||
|
||||
dns.Shutdown()
|
||||
if dns.dns != nil {
|
||||
close(dns.stopChan)
|
||||
}
|
||||
|
||||
dns.dns, err = agents.NewDNSAgent(dns.cfg, filterS, dns.connMgr)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user