Skip to content

Commit

Permalink
Merge pull request #391 from nodejitsu/check-version-fix
Browse files Browse the repository at this point in the history
[merge] Fixes jitsu not reporting new version
  • Loading branch information
blakmatrix committed Feb 18, 2013
2 parents 19ca735 + 0ebdc1a commit aa6fc40
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions lib/jitsu.js
Expand Up @@ -141,16 +141,16 @@ jitsu.start = function (callback) {
return;
}

jitsu.common.checkVersion(function (err) {
jitsu.init(function (err) {
if (err) {
return callback();
jitsu.welcome();
callback(err);
return jitsu.showError(jitsu.argv._.join(' '), err);
}
jitsu.init(function (err) {

jitsu.common.checkVersion(function (err) {
if (err) {
jitsu.welcome();
callback(err);
return jitsu.showError(jitsu.argv._.join(' '), err);
return callback();
}

//
Expand Down
2 changes: 1 addition & 1 deletion lib/jitsu/common/index.js
Expand Up @@ -173,7 +173,7 @@ common.checkVersion = function (callback) {
//
request({
uri: 'http://registry.npmjs.org/jitsu/latest',
timeout: 400
timeout: 1000
}, function (err, res, body) {
if (!responded) {
responded = true;
Expand Down

0 comments on commit aa6fc40

Please sign in to comment.