fix: xray内核删除用户时重复加锁导致卡死

This commit is contained in:
wyx2685
2025-09-19 01:05:50 +09:00
parent 9483526f3c
commit 9bbccf772b

View File

@@ -39,8 +39,6 @@ func (m *LinkManager) RemoveWriter(writer *ManagedWriter) {
} }
func (m *LinkManager) CloseAll() { func (m *LinkManager) CloseAll() {
m.mu.Lock()
defer m.mu.Unlock()
for w, r := range m.links { for w, r := range m.links {
common.Close(w) common.Close(w)
common.Interrupt(r) common.Interrupt(r)