Catch a different form of etcd disconnect

This commit is contained in:
James Shubin
2016-01-10 04:09:28 -05:00
parent 8ea8ef8d0e
commit 48eddc3721

View File

@@ -160,6 +160,9 @@ func (etcdO *EtcdWObject) EtcdWatch() chan etcdMsg {
time.Sleep(time.Duration(t) * time.Millisecond) // sleep for t ms time.Sleep(time.Duration(t) * time.Millisecond) // sleep for t ms
} else if e.Error() == "unexpected EOF" { } else if e.Error() == "unexpected EOF" {
log.Printf("Etcd: Unexpected disconnect...")
} else if e.Error() == "EOF" {
log.Printf("Etcd: Disconnected...") log.Printf("Etcd: Disconnected...")
} else if strings.HasPrefix(e.Error(), "unsupported protocol scheme") { } else if strings.HasPrefix(e.Error(), "unsupported protocol scheme") {