1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-30 05:55:20 -05:00

detect underlying mux worker closed

This commit is contained in:
Darien Raymond
2018-10-29 12:51:56 +01:00
parent f3ad8acbe4
commit ff310d6bc6
3 changed files with 12 additions and 1 deletions

View File

@@ -137,7 +137,7 @@ func (w *BridgeWorker) Close() error {
}
func (w *BridgeWorker) IsActive() bool {
return w.state == Control_ACTIVE
return w.state == Control_ACTIVE && !w.worker.Closed()
}
func (w *BridgeWorker) Connections() uint32 {