Skip to content

Commit

Permalink
C2-25226: Fix OpenFin unregistered intent listener (#2283)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinerollindev authored Feb 3, 2025
1 parent 9b1b094 commit ffe82c1
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 ffe82c1

Please sign in to comment.