Fix serverInfo undefined due to wrong connection URI set on connection. (#23884) (#23891)

This commit is contained in:
Cheena Malhotra
2023-07-17 10:08:57 -07:00
committed by GitHub
parent df4847b517
commit f996ad0832

View File

@@ -682,8 +682,8 @@ export class ConnectionManagementService extends Disposable implements IConnecti
connection.options = connectionErrorHandleResult.options; connection.options = connectionErrorHandleResult.options;
} }
if (connectionErrorHandleResult.reconnect) { if (connectionErrorHandleResult.reconnect) {
// Attempt reconnect if requested by provider // Attempt reconnect if requested by provider and reset URI to be regenerated.
return this.connectWithOptions(connection, uri, options, callbacks); return this.connectWithOptions(connection, undefined, options, callbacks);
} else { } else {
if (callbacks.onConnectCanceled) { if (callbacks.onConnectCanceled) {
callbacks.onConnectCanceled(); callbacks.onConnectCanceled();