From 5bdf8a14a712c43948ab2fc71702561755367174 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 22 Aug 2014 10:03:38 -0700 Subject: [PATCH] Use once for closed event --- src/browser/atom-application.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/atom-application.coffee b/src/browser/atom-application.coffee index e26ad4b7c..587535aeb 100644 --- a/src/browser/atom-application.coffee +++ b/src/browser/atom-application.coffee @@ -351,7 +351,7 @@ class AtomApplication if pidToKillWhenClosed? @pidsToOpenWindows[pidToKillWhenClosed] = openedWindow - openedWindow.browserWindow.on 'closed', => + openedWindow.browserWindow.once 'closed', => @killProcessForWindow(openedWindow) # Kill all processes associated with opened windows.