Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
webtorrent-remote 0.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
dcposch authored and bbondy committed Nov 22, 2016
1 parent 61666bc commit 05e1231
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions js/webtorrent/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ function send (msg) {
ipc.send(messages.TORRENT_MESSAGE, msg)
}

// Clean up the client before the window exits
window.addEventListener('beforeunload', function () {
state.client.destroy({delay: 1000})
})

// Check whether we're already part of this swarm. If not, show a Start button.
state.client.get(state.torrentID, function (err, torrent) {
if (!err) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"tracking-protection": "1.1.x",
"underscore": "1.8.3",
"url-loader": "^0.5.7",
"webtorrent-remote": "0.0.7"
"webtorrent-remote": "0.0.8"
},
"devDependencies": {
"asar": "^0.11.0",
Expand Down

0 comments on commit 05e1231

Please sign in to comment.