Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add time remaining estimate and minor fixes #56

Merged
merged 10 commits into from May 18, 2014
Prev

fixed possibility of hanging process on --remove and fixed an error i…

…n FSStorage.close
  • Loading branch information
transitive-bullshit committed May 16, 2014
commit 8021381b1ab14cfe61e69eef7e8d53b0d8349e9c
@@ -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()
@@ -186,7 +186,7 @@ FSStorage.prototype.close = function (cb) {
if (i >= self.files.length) return cb()
if (err) return cb(err)
var next = self.files[i++]
if (!next) return process.nextTick(loop)
if (!next || !next.fd) return process.nextTick(loop)
next.fd.close(loop)
}

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.