Skip to content

Commit

Permalink
C2-25226: Fix OpenFin unregistered intent listener
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinerollindev committed Feb 3, 2025
1 parent 1c80348 commit e2304f3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/app/openfin-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,11 @@ export class OpenfinHandler {
*/
public async unregisterIntentHandler(uuid: UUID) {
const subscription = this.intentHandlerSubscriptions.get(uuid);

const response = await subscription.unsubscribe();
this.intentHandlerSubscriptions.delete(uuid);
return response;
if (subscription) {
const response = await subscription.unsubscribe();
this.intentHandlerSubscriptions.delete(uuid);
return response;
}
}

/**
Expand Down

0 comments on commit e2304f3

Please sign in to comment.