1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-28 13:05: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

View File

@@ -87,6 +87,8 @@ func (m *syncPolicyManager) Set(manager PolicyManager) {
return
}
m.Close()
m.Lock()
defer m.Unlock()