Skip to content

Commit 15bb3b5

Browse files
prevent block of auth client service on setOptions
1 parent 9746e94 commit 15bb3b5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: arduino-ide-extension/src/browser/auth/authentication-client-service.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ export class AuthenticationClientService
5050
.session()
5151
.then((session) => this.notifySessionDidChange(session));
5252

53-
await this.setOptions();
54-
this.service.initAuthSession();
53+
this.setOptions().then(() => this.service.initAuthSession());
5554

5655
this.arduinoPreferences.onPreferenceChanged((event) => {
5756
if (event.preferenceName.startsWith('arduino.auth.')) {

0 commit comments

Comments
 (0)