on -> once

This commit is contained in:
Feross Aboukhadijeh
2016-06-01 00:10:26 -07:00
parent 8fc61a1c90
commit dac34541d6
4 changed files with 7 additions and 8 deletions

View File

@@ -327,11 +327,11 @@ function buildDarwin (cb) {
}
var dmg = appDmg(dmgOpts)
dmg.on('error', cb)
dmg.once('error', cb)
dmg.on('progress', function (info) {
if (info.type === 'step-begin') console.log(info.title + '...')
})
dmg.on('finish', function (info) {
dmg.once('finish', function (info) {
console.log('OS X: Created dmg.')
cb(null)
})