Skip to content
Snippets Groups Projects
Commit 8e487f21 authored by Xin.Zh's avatar Xin.Zh Committed by 邹毅贤
Browse files

Merge pull request #803 from zouyx/fixRestartBug

Fix: Consumer panic when restart provider 
parent 9eb7c019
No related branches found
No related tags found
No related merge requests found
...@@ -182,6 +182,8 @@ func (client *ExchangeClient) Send(invocation *protocol.Invocation, url common.U ...@@ -182,6 +182,8 @@ func (client *ExchangeClient) Send(invocation *protocol.Invocation, url common.U
// close client // close client
func (client *ExchangeClient) Close() { func (client *ExchangeClient) Close() {
client.client.Close() client.client.Close()
// for reinit client
client.init = false
} }
// IsAvailable to check if the underlying network client is available yet. // IsAvailable to check if the underlying network client is available yet.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment