1
0
Fork 0
mirror of https://github.com/sourcegraph/jsonrpc2.git synced 2026-06-16 04:04:56 +02:00
This commit is contained in:
Anshul 2026-01-01 14:35:10 -03:00 committed by GitHub
commit 4a1663c314
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -186,8 +186,9 @@ func (c *Conn) close(cause error) error {
return ErrClosed
}
for _, call := range c.pending {
for id, call := range c.pending {
close(call.done)
delete(c.pending, id)
}
if cause != nil && cause != io.EOF && cause != io.ErrUnexpectedEOF {