Permalink
Browse files

Correct pack/unpack queue for win32

  • Loading branch information...
1 parent 7c1334c commit 7582751f2513100f7a7b41bea67ac14761745de9 @isaacs isaacs committed Nov 16, 2011
Showing with 2 additions and 6 deletions.
  1. +2 −6 lib/utils/tar.js
View
@@ -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)
}

0 comments on commit 7582751

Please sign in to comment.