diff --git a/transport/ray/direct.go b/transport/ray/direct.go index 38b53843..18ba161d 100644 --- a/transport/ray/direct.go +++ b/transport/ray/direct.go @@ -77,6 +77,9 @@ func (this *Stream) Write(data *alloc.Buffer) error { } this.access.RLock() defer this.access.RUnlock() + if this.closed { + return io.EOF + } if this.buffer == nil { return io.EOF }