1
0
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:
Loyalsoldier 2021-05-01 22:20:33 +08:00 committed by GitHub
parent 0d4479a72a
commit 411a50c8fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}
}