aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/webTorrentNode.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/webTorrentNode.js')
-rw-r--r--src/webTorrentNode.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/webTorrentNode.js b/src/webTorrentNode.js
index bc77872ce..d6801d0fb 100644
--- a/src/webTorrentNode.js
+++ b/src/webTorrentNode.js
@@ -1,10 +1,10 @@
1;(function () { 1;(function () {
2 'use strict' 2 'use strict'
3 3
4 var spawn = require('electron-spawn')
5 var config = require('config') 4 var config = require('config')
6 var ipc = require('node-ipc') 5 var ipc = require('node-ipc')
7 var pathUtils = require('path') 6 var pathUtils = require('path')
7 var spawn = require('electron-spawn')
8 8
9 var logger = require('./logger') 9 var logger = require('./logger')
10 10
@@ -85,12 +85,12 @@
85 } 85 }
86 } 86 }
87 87
88 if (!webtorrentnode.silent) logger.debug('Node wants to seed ' + data._id) 88 if (!webtorrentnode.silent) logger.debug('Node wants to seed %s.', data._id)
89 89
90 // Finish signal 90 // Finish signal
91 var event_key = nodeKey + '.seedDone.' + data._id 91 var event_key = nodeKey + '.seedDone.' + data._id
92 ipc.server.on(event_key, function listener (received) { 92 ipc.server.on(event_key, function listener (received) {
93 if (!webtorrentnode.silent) logger.debug('Process seeded torrent ' + received.magnetUri) 93 if (!webtorrentnode.silent) logger.debug('Process seeded torrent %s.', received.magnetUri)
94 94
95 // This is a fake object, we just use the magnetUri in this project 95 // This is a fake object, we just use the magnetUri in this project
96 var torrent = { 96 var torrent = {
@@ -117,7 +117,7 @@
117 // Finish signal 117 // Finish signal
118 var event_key = nodeKey + '.addDone.' + data._id 118 var event_key = nodeKey + '.addDone.' + data._id
119 ipc.server.on(event_key, function (received) { 119 ipc.server.on(event_key, function (received) {
120 if (!webtorrentnode.silent) logger.debug('Process added torrent') 120 if (!webtorrentnode.silent) logger.debug('Process added torrent.')
121 121
122 // This is a fake object, we just use the magnetUri in this project 122 // This is a fake object, we just use the magnetUri in this project
123 var torrent = { 123 var torrent = {
@@ -139,12 +139,12 @@
139 } 139 }
140 } 140 }
141 141
142 if (!webtorrentnode.silent) logger.debug('Node wants to stop seeding ' + data._id) 142 if (!webtorrentnode.silent) logger.debug('Node wants to stop seeding %s.', data._id)
143 143
144 // Finish signal 144 // Finish signal
145 var event_key = nodeKey + '.removeDone.' + data._id 145 var event_key = nodeKey + '.removeDone.' + data._id
146 ipc.server.on(event_key, function (received) { 146 ipc.server.on(event_key, function (received) {
147 if (!webtorrentnode.silent) logger.debug('Process removed torrent ' + data._id) 147 if (!webtorrentnode.silent) logger.debug('Process removed torrent %s.', data._id)
148 148
149 var err = null 149 var err = null
150 if (received.err) err = received.err 150 if (received.err) err = received.err