Skip to content

Commit

Permalink
fixup: connection failure on update connect fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Anemy committed Jan 16, 2024
1 parent e7e415f commit 00dde07
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/connectionController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ export default class ConnectionController {
`Unable to connect: ${printableError.message}`
);
return {
successfullyConnected: true,
successfullyConnected: false,
connectionErrorMessage: '',
};
}
Expand Down Expand Up @@ -707,7 +707,7 @@ export default class ConnectionController {
}: {
connectionId: string;
connectionOptions: ConnectionOptions;
}): Promise<boolean> {
}): Promise<void> {
if (!this._connections[connectionId]) {
throw new Error('Cannot find connection to update.');
}
Expand All @@ -719,8 +719,6 @@ export default class ConnectionController {
await this._connectionStorage.saveConnection(
this._connections[connectionId]
);

return true;
}

async updateConnectionAndConnect({
Expand Down

0 comments on commit 00dde07

Please sign in to comment.