fixes for standard v10

This commit is contained in:
Feross Aboukhadijeh
2017-03-01 23:07:10 -08:00
parent 972203d675
commit c764bf4884
4 changed files with 16 additions and 12 deletions

View File

@@ -17,8 +17,8 @@ let proc = null
function checkInstall (playerPath, cb) {
// check for VLC if external player has not been specified by the user
// otherwise assume the player is installed
if (playerPath == null) return vlcCommand((err) => cb(!err))
process.nextTick(() => cb(true))
if (playerPath == null) return vlcCommand(cb)
process.nextTick(() => cb(null))
}
function spawn (playerPath, url, title) {