lib/relay: Call the proper Error method (ref #5806) (#5841)

This commit is contained in:
Simon Frei 2019-07-09 23:29:19 +02:00 committed by Audrius Butkevicius
parent 05e9e0bfa9
commit 485acda63b

View File

@ -108,7 +108,7 @@ func (c *dynamicClient) Error() error {
c.mut.RLock()
defer c.mut.RUnlock()
if c.client == nil {
return c.Error()
return c.commonClient.Error()
}
return c.client.Error()
}