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:
commit
6b70563d38
1
rpc.go
1
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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user