This commit is contained in:
tycho garen
2022-03-04 09:41:52 -05:00
parent 06b193c742
commit 079d3e5e25

View File

@@ -42,9 +42,11 @@ func tryCallStop(client abciclient.Client) {
if client == nil {
return
}
if sc, ok := client.(interface{ Stop() }); ok {
sc.Stop()
switch c := client.(type) {
case interface{ Stop() }:
c.Stop()
case *proxyClient:
tryCallStop(c.Client)
}
}