Преглед изворни кода

clean up mux client in manager

Darien Raymond пре 8 година
родитељ
комит
9b1d20943f
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      app/proxyman/mux/mux.go

+ 2 - 0
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()