close inbound ray when there is an error

pull/69/head
v2ray 2016-01-11 01:01:52 +01:00
parent adf5820286
commit 8daea1dc06
1 changed files with 1 additions and 0 deletions

View File

@ -120,6 +120,7 @@ func (this *VMessInboundHandler) HandleConnection(connection *net.TCPConn) error
aesStream, err := v2crypto.NewAesEncryptionStream(responseKey[:], responseIV[:])
if err != nil {
log.Error("VMessIn: Failed to create AES decryption stream: %v", err)
close(input)
return err
}