Archived
connectWithRetry needed to pass as ... so each arg was set correctly, instead of having 1st param be an array of the input arguments
This commit is contained in:
committed by
Karl Burtram
parent
fbcd3c620c
commit
1cae74c6d3
@@ -301,7 +301,7 @@ export class ClusterController {
|
|||||||
private async withConnectRetry<T>(f: (...args: any[]) => Promise<T>, promptConnect: boolean, errorMessage: string, ...args: any[]): Promise<T> {
|
private async withConnectRetry<T>(f: (...args: any[]) => Promise<T>, promptConnect: boolean, errorMessage: string, ...args: any[]): Promise<T> {
|
||||||
try {
|
try {
|
||||||
try {
|
try {
|
||||||
return await f(this, args);
|
return await f(this, ...args);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (promptConnect) {
|
if (promptConnect) {
|
||||||
// We don't want to open multiple dialogs here if multiple calls come in the same time so check
|
// We don't want to open multiple dialogs here if multiple calls come in the same time so check
|
||||||
|
|||||||
Reference in New Issue
Block a user