Merge pull request #70 from digitalocean/geoff/no-dereg-on-eof

don't deregisterAll callbacks when one gets an EOF.
This commit is contained in:
Geoff Hickey 2018-06-28 19:09:27 -04:00 committed by GitHub
commit 6b70563d38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}