1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-16 04:35:24 +00:00

prevent goroutine leak

This commit is contained in:
v2ray 2016-07-29 12:13:20 +02:00
parent 6fa84624cb
commit 7f277c9bcc
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -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()
}