Darien Raymond il y a 8 ans
Parent
commit
4ee1abdaff
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      app/proxyman/mux/mux.go

+ 2 - 2
app/proxyman/mux/mux.go

@@ -158,6 +158,8 @@ func (m *Client) Closed() bool {
 }
 
 func (m *Client) monitor() {
+	defer m.manager.onClientFinish()
+
 	for {
 		select {
 		case <-m.ctx.Done():
@@ -172,8 +174,6 @@ func (m *Client) monitor() {
 }
 
 func (m *Client) cleanup() {
-	defer m.manager.onClientFinish()
-
 	m.access.Lock()
 	defer m.access.Unlock()