mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-22 23:13:46 +00:00
handle empty payload
This commit is contained in:
2 files changed
+7
-3
No files matched your search
@@ -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{}
|
||||
|
||||
Reference in new issue
Block a user