Skip to content

Commit

Permalink
fix: service specific notification to only trigger once
Browse files Browse the repository at this point in the history
Co-Authored-By: Shane <jonas.shane@gmail.com>
  • Loading branch information
zcstarr and shanejonas authored Jun 10, 2019
1 parent 6b8bed9 commit a6dcd73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/taskProcessManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class TaskProcessManager {
return new Promise((resolve) => {
const pendingTask: events.PendingTaskEvent = { name: "pending", service };
this.notifications.emit(pendingTask);
service.notifications.on("launched", (svc) => {
service.notifications.once("launched", (svc) => {
resolve(svc);
});
});
Expand Down

0 comments on commit a6dcd73

Please sign in to comment.