We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6792e63 commit aced6b6Copy full SHA for aced6b6
common/remote/rpc/rpc_client.go
@@ -407,7 +407,12 @@ func (r *RpcClient) RegisterConnectionListener(listener IConnectionEventListener
407
}
408
409
func (r *RpcClient) switchServerAsync(recommendServerInfo ServerInfo, onRequestFail bool) {
410
- r.reconnectionChan <- ReconnectContext{serverInfo: recommendServerInfo, onRequestFail: onRequestFail}
+ select {
411
+ case r.reconnectionChan <- ReconnectContext{serverInfo: recommendServerInfo, onRequestFail: onRequestFail}:
412
+ default:
413
+ logger.Warnf("reconnection already in progress, skip this request")
414
+ }
415
+
416
417
418
func (r *RpcClient) reconnect(serverInfo ServerInfo, onRequestFail bool) {
0 commit comments