mirror of
https://github.com/sourcegraph/jsonrpc2.git
synced 2026-06-19 05:30:03 +02:00
Merge ccd64f0b4d into 4756698b1e
This commit is contained in:
commit
4a1663c314
1 changed files with 2 additions and 1 deletions
3
conn.go
3
conn.go
|
|
@ -186,8 +186,9 @@ func (c *Conn) close(cause error) error {
|
||||||
return ErrClosed
|
return ErrClosed
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, call := range c.pending {
|
for id, call := range c.pending {
|
||||||
close(call.done)
|
close(call.done)
|
||||||
|
delete(c.pending, id)
|
||||||
}
|
}
|
||||||
|
|
||||||
if cause != nil && cause != io.EOF && cause != io.ErrUnexpectedEOF {
|
if cause != nil && cause != io.EOF && cause != io.ErrUnexpectedEOF {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue