1
0
Fork 0
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:
Sam Herrmann 2023-02-07 13:52:21 -05:00
parent 0c9de81282
commit 85075f0782
2 changed files with 22 additions and 7 deletions

View file

@ -430,7 +430,6 @@ func (c *Conn) close(cause error) error {
}
for _, call := range c.pending {
call.done <- cause
close(call.done)
}