diff --git a/app/proxyman/mux/mux.go b/app/proxyman/mux/mux.go index 5d0c7e04..687fe790 100644 --- a/app/proxyman/mux/mux.go +++ b/app/proxyman/mux/mux.go @@ -172,6 +172,8 @@ func (m *Client) monitor() { } func (m *Client) cleanup() { + defer m.manager.onClientFinish() + m.access.Lock() defer m.access.Unlock()