Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorfisch0920 <fisch0920@gmail.com>2014-05-16 14:17:01 +0400
committerfisch0920 <fisch0920@gmail.com>2014-05-16 14:17:01 +0400
commit8021381b1ab14cfe61e69eef7e8d53b0d8349e9c (patch)
tree3ec1513ada99ada14ca97bfc2a21a1af801931d1 /bin
parenta1afa10e49f95293cb2b36d89f67af6f5f4446ad (diff)
fixed possibility of hanging process on --remove and fixed an error in FSStorage.close
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cmd.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index 7117150..4532edf 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -108,6 +108,9 @@ client.server.once('listening', function () {
})
function remove () {
+ process.removeListener('SIGINT', remove)
+ process.removeListener('SIGTERM', remove)
+
client.destroy(function () {
process.nextTick(function () {
process.exit()