Skip to content

Commit

Permalink
Merge pull request #803 from zouyx/fixRestartBug
Browse files Browse the repository at this point in the history
Fix: Consumer panic when restart provider
  • Loading branch information
AlexStocks authored and zouyx committed Oct 31, 2020
1 parent 9eb7c01 commit 8e487f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions remoting/exchange_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8e487f2

Please sign in to comment.