From 8e487f2153849cd1bf69bd04d42b2bdf74115631 Mon Sep 17 00:00:00 2001 From: "Xin.Zh" <dragoncharlie@foxmail.com> Date: Wed, 28 Oct 2020 11:11:00 +0800 Subject: [PATCH] Merge pull request #803 from zouyx/fixRestartBug Fix: Consumer panic when restart provider --- remoting/exchange_client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/remoting/exchange_client.go b/remoting/exchange_client.go index e5f6d7feb..26fa5d574 100644 --- a/remoting/exchange_client.go +++ b/remoting/exchange_client.go @@ -182,6 +182,8 @@ func (client *ExchangeClient) Send(invocation *protocol.Invocation, url common.U // close client func (client *ExchangeClient) Close() { client.client.Close() + // for reinit client + client.init = false } // IsAvailable to check if the underlying network client is available yet. -- GitLab