Skip to content

Commit

Permalink
windows: fixed mpv crashing on quit
Browse files Browse the repository at this point in the history
  • Loading branch information
winneon committed Sep 18, 2017
1 parent 1a08ea8 commit 680c9b2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Watch with MPV",
"description": "Open the current web stream with MPV.",
"version": "1.2.6",
"version": "1.2.7",
"icons": {
"128": "icons/mpv.png"
},
Expand Down
7 changes: 5 additions & 2 deletions native/native.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ process.stdin
})

done()
process.exit(1)
})

player.socket.on('message', data => {
Expand All @@ -46,20 +47,22 @@ process.stdin
})

done()
process.exit(0)

break
case 'end-file':
player.quit()

if (!loadedBeforeEnded) {
push({
error: 'error',
version: version
})

done()
process.exit(1)
}

process.exit(0)

break
}
}
Expand Down
2 changes: 1 addition & 1 deletion native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "watch-with-mpv-native",
"description": "The native host for the Watch with MPV Chrome extension.",
"author": "Jesse Bryan <[email protected]>",
"version": "1.2.6",
"version": "1.2.7",
"license": "MIT",
"repository": "winneon/watch-with-mpv",
"bin": {
Expand Down

0 comments on commit 680c9b2

Please sign in to comment.