don't deregisterAll callbacks when one gets an EOF.
The deregisterAll routine is still called when the connection is explicitly shut down by calling Disconnect.
This commit is contained in:
parent
2b098b4625
commit
537933a1e2
1
rpc.go
1
rpc.go
@ -143,7 +143,6 @@ func (l *Libvirt) listen() {
|
|||||||
// When the underlying connection EOFs or is closed, stop
|
// When the underlying connection EOFs or is closed, stop
|
||||||
// this goroutine
|
// this goroutine
|
||||||
if err == io.EOF || strings.Contains(err.Error(), "use of closed network connection") {
|
if err == io.EOF || strings.Contains(err.Error(), "use of closed network connection") {
|
||||||
l.deregisterAll()
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user