;(function () {
'use strict'
- module.exports = function (args) {
+ function webtorrent (args) {
var WebTorrent = require('webtorrent')
var ipc = require('node-ipc')
try {
wt.remove(magnetUri, callback)
} catch (err) {
- console.log('Cannot remove the torrent from WebTorrent', { err: err })
+ console.log('Cannot remove the torrent from WebTorrent')
return callback(null)
}
ipc.of[nodeKey].emit(processKey + '.exception', { exception: e })
})
}
+
+ // ---------------------------------------------------------------------------
+
+ module.exports = webtorrent
})()