mirror of
https://github.com/sourcegraph/jsonrpc2.git
synced 2026-06-19 05:30:03 +02:00
Fix TestConn_Close
The changes in this commit arrange TestConn_Close to execute as intended by closing the connection after sending the request.
This commit is contained in:
parent
0c9de81282
commit
85075f0782
2 changed files with 22 additions and 7 deletions
|
|
@ -430,7 +430,6 @@ func (c *Conn) close(cause error) error {
|
|||
}
|
||||
|
||||
for _, call := range c.pending {
|
||||
call.done <- cause
|
||||
close(call.done)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue