Skip to content

Commit

Permalink
fix(Telemetry): Ensure to not show backed notification on error
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Sep 16, 2021
1 parent 46c58bf commit dce0ff1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/classes/PluginManager.js
Expand Up @@ -657,12 +657,13 @@ class PluginManager {
}`
);
} finally {
await deferredBackendNotificationRequest;
throw commandException; // eslint-disable-line no-unsafe-finally
}
} finally {
if (deferredBackendNotificationRequest) {
await processBackendNotificationRequest(await deferredBackendNotificationRequest);
}
}

if (deferredBackendNotificationRequest) {
await processBackendNotificationRequest(await deferredBackendNotificationRequest);
}
}

Expand Down

0 comments on commit dce0ff1

Please sign in to comment.