handle empty payload

This commit is contained in:
Darien Raymond committed 2016-11-19 22:40:14 +01:00
1 parent f64c79e239
commit 84740b676a
2 files changed
+7 -3

No files matched your search

+3 -1
View File
@@ -23,7 +23,9 @@ func (this *OutboundConnectionHandler) Dispatch(destination v2net.Destination, p
output := ray.OutboundOutput()
this.Destination = destination
this.ConnOutput.Write(payload.Value)
if !payload.IsEmpty() {
this.ConnOutput.Write(payload.Value)
}
payload.Release()
writeFinish := &sync.Mutex{}