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:
Geoff Hickey 2018-06-28 18:00:02 -04:00
parent 2b098b4625
commit 537933a1e2

1
rpc.go
View File

@ -143,7 +143,6 @@ func (l *Libvirt) listen() {
// When the underlying connection EOFs or is closed, stop
// this goroutine
if err == io.EOF || strings.Contains(err.Error(), "use of closed network connection") {
l.deregisterAll()
return
}