This commit is contained in:
kingecg 2025-06-03 23:09:26 +08:00
parent d30f38217f
commit 1a9da8d893
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ func (m *cMux) Remove(l net.Listener) error {
defer m.mu.Unlock()
for i, sl := range m.sls {
if sl.l.Listener == l {
if sl.l == l {
cl.donec <- struct{}{}
m.sls = append(m.sls[:i], m.sls[i+1:]...)