From 537933a1e2af89ee4af24e6629b7e330118a04c1 Mon Sep 17 00:00:00 2001 From: Geoff Hickey Date: Thu, 28 Jun 2018 18:00:02 -0400 Subject: [PATCH] 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. --- rpc.go | 1 - 1 file changed, 1 deletion(-) diff --git a/rpc.go b/rpc.go index 6c54abe..238caba 100644 --- a/rpc.go +++ b/rpc.go @@ -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 }