async chan write read, no write for closed chan

This commit is contained in:
Chris Lu committed 2020-05-10 03:48:35 -07:00
1 parent 78afb8bf46
commit 6bf3eb69cb
5 files changed
+34 -5

No files matched your search

+1 -1
View File
@@ -55,8 +55,8 @@ func (mc *MessagingClient) NewSubChannel(chanName string) (*SubChannel, error) {
close(t.ch)
return
}
t.md5hash.Write(resp.Data.Value)
t.ch <- resp.Data.Value
t.md5hash.Write(resp.Data.Value)
}
}()