Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Correct pack/unpack queue for win32

  • Loading branch information...
commit 7582751f2513100f7a7b41bea67ac14761745de9 1 parent 7c1334c
@isaacs isaacs authored
Showing with 2 additions and 6 deletions.
  1. +2 −6 lib/utils/tar.js
View
8 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)
}
Please sign in to comment.
Something went wrong with that request. Please try again.