mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 17:46:58 -05:00
Fix: multi FakeDNS Close method (#956)
This commit is contained in:
parent
0d4479a72a
commit
411a50c8fa
@ -198,8 +198,7 @@ func (h *HolderMulti) Start() error {
|
||||
|
||||
func (h *HolderMulti) Close() error {
|
||||
for _, v := range h.holders {
|
||||
err := v.Start()
|
||||
if err != nil {
|
||||
if err := v.Close(); err != nil {
|
||||
return newError("Cannot close all fake dns pools").Base(err)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user