Add tests for endpoint NewStream.
Rename OpenWithVidPid to OpenWithVIDPID.
This commit is contained in:
@@ -120,6 +120,9 @@ func (r ReadStream) Read(p []byte) (int, error) {
|
||||
// was encountered earlier.
|
||||
// Close cannot be called concurrently with Read.
|
||||
func (r ReadStream) Close() error {
|
||||
if r.s.transfers == nil {
|
||||
return nil
|
||||
}
|
||||
r.s.setDelayedErr(io.EOF)
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user