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

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-11-17 01:51:01 +0400
committerisaacs <i@izs.me>2011-11-17 01:51:01 +0400
commit7582751f2513100f7a7b41bea67ac14761745de9 (patch)
tree6270135268366e84adc950f8a6a04059cff5cd9e
parent7c1334ce08f2d910dea68046e47ef9d129e93336 (diff)
Correct pack/unpack queue for win32
-rw-r--r--lib/utils/tar.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/utils/tar.js b/lib/utils/tar.js
index 6ed532684..d004917ab 100644
--- a/lib/utils/tar.js
+++ b/lib/utils/tar.js
@@ -54,9 +54,7 @@ function pack (targetTarball, folder, pkg, dfc, cb_) {
function cb (er, data) {
packing = false
var next = packQueue.shift()
- if (next) process.nextTick(function () {
- pack.apply(null, next)
- })
+ if (next) return pack.apply(null, next)
cb_(er, data)
}
@@ -147,9 +145,7 @@ function unpack_ ( tarball, unpackTarget, dMode, fMode, uid, gid, cb_ ) {
function cb (er, data) {
unpacking = false
var next = unpackQueue.shift()
- if (next) process.nextTick(function () {
- unpack_.apply(null, next)
- })
+ if (next) return unpack_.apply(null, next)
cb_(er, data)
}