small fixes

This commit is contained in:
Darien Raymond
2016-11-19 00:37:11 +01:00
parent 292176c57f
commit 65a49e7fa0
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ func (this *ProxyConnection) Read(b []byte) (int, error) {
func (this *ProxyConnection) Write(b []byte) (int, error) {
if this.closed {
return 0, errors.New("Proxy|Outbound: Writing into closed connection.")
return 0, io.ErrClosedPipe
}
return this.writer.Write(b)
}
-1
View File
@@ -157,7 +157,6 @@ func (this *VMessOutboundHandler) handleResponse(session *encoding.ClientSession
}
bodyReader.Release()
return
}