Archived
This commit is contained in:
1 parent
0ca1f26ff8
commit
19b51c9b92
1 file changed
+2
-2
@@ -641,9 +641,9 @@ func (c *rawConnection) handleResponse(resp Response) {
|
|||||||
c.awaitingMut.Unlock()
|
c.awaitingMut.Unlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *rawConnection) send(msg message, done chan struct{}) bool {
|
func (c *rawConnection) send(msg message, done chan struct{}) (sent bool) {
|
||||||
defer func() {
|
defer func() {
|
||||||
if done != nil {
|
if !sent && done != nil {
|
||||||
close(done)
|
close(done)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|||||||
Reference in new issue
Block a user