Selaa lähdekoodia

close all sessions after main connection ends

Darien Raymond 8 vuotta sitten
vanhempi
commit
947492a71c
1 muutettua tiedostoa jossa 9 lisäystä ja 0 poistoa
  1. 9 0
      app/proxyman/mux/mux.go

+ 9 - 0
app/proxyman/mux/mux.go

@@ -271,6 +271,15 @@ func (m *Client) fetchOutput() {
 			break
 		}
 	}
+
+	// Close all downlinks
+	m.access.RLock()
+	for _, s := range m.sessions {
+		s.closeUplink()
+		s.closeDownlink()
+		s.output.CloseError()
+	}
+	m.access.RUnlock()
 }
 
 type Server struct {