Address comments.

This commit is contained in:
Arijit Das
2020-06-11 19:21:31 +05:30
parent db28858804
commit 1c87a339a5
6 changed files with 43 additions and 28 deletions
+2 -1
View File
@@ -13,6 +13,7 @@ type emitter struct {
quit chan int
}
// NewEmitter creates and initializes new `emitter` object.
func NewEmitter(quit chan int) *emitter {
return &emitter{
quit: quit,
@@ -108,7 +109,7 @@ func CopyMulty(src io.Reader, writers ...io.Writer) error {
var nr int
nr, err := src.Read(buf)
if err == io.EOF {
if err == io.EOF || err == StoppedError {
return nil
}
if err != nil {