Mikhail Mazurskiy 7 лет назад
Родитель
Сommit
b858ec296c
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      pool.go

+ 1 - 0
pool.go

@@ -23,6 +23,7 @@ func (cfg *frozenConfig) BorrowStream(writer io.Writer) *Stream {
 }
 
 func (cfg *frozenConfig) ReturnStream(stream *Stream) {
+	stream.out = nil
 	stream.Error = nil
 	stream.Attachment = nil
 	cfg.streamPool.Put(stream)