You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by xi...@apache.org on 2019/08/09 11:53:57 UTC
[dubbo-go] branch master updated: Fix:bug in failbackClusterInvoker
This is an automated email from the ASF dual-hosted git repository.
xinminghe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/master by this push:
new 046699a Fix:bug in failbackClusterInvoker
046699a is described below
commit 046699a1a90abfeb2a07dc4f9c391d60953c4f2a
Author: vito.he <hx...@163.com>
AuthorDate: Fri Aug 9 19:53:34 2019 +0800
Fix:bug in failbackClusterInvoker
---
cluster/cluster_impl/failback_cluster_invoker.go | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/cluster/cluster_impl/failback_cluster_invoker.go b/cluster/cluster_impl/failback_cluster_invoker.go
index 08b1577..027461c 100644
--- a/cluster/cluster_impl/failback_cluster_invoker.go
+++ b/cluster/cluster_impl/failback_cluster_invoker.go
@@ -175,7 +175,9 @@ func (invoker *failbackClusterInvoker) Destroy() {
invoker.baseClusterInvoker.Destroy()
// stop ticker
- invoker.ticker.Stop()
+ if invoker.ticker != nil {
+ invoker.ticker.Stop()
+ }
_ = invoker.taskList.Dispose()
}