1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-27 20:45:28 -05:00

close inner features before resetting

This commit is contained in:
Darien Raymond
2018-02-20 21:22:41 +01:00
parent f0849543ed
commit c335789e40
4 changed files with 25 additions and 0 deletions

2
dns.go
View File

@@ -52,6 +52,8 @@ func (d *syncDNSClient) Set(client DNSClient) {
return
}
d.Close()
d.Lock()
defer d.Unlock()