mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
prevent goroutine leak
This commit is contained in:
@@ -392,6 +392,8 @@ func (this *Connection) Terminate() {
|
||||
log.Info("KCP|Connection: Terminating connection to ", this.RemoteAddr())
|
||||
|
||||
this.SetState(StateTerminated)
|
||||
this.dataInputCond.Broadcast()
|
||||
this.dataOutputCond.Broadcast()
|
||||
this.writer.Close()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user