Skip to content

Commit

Permalink
Fix exceptions in galaxy deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Emily Stark committed Feb 23, 2014
1 parent bbc8fe2 commit d6f04ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/deploy-galaxy.js
Expand Up @@ -11,6 +11,7 @@ var auth = require('./auth.js');
var release = require('./release.js');
var url = require('url');
var _ = require('underscore');
var buildmessage = require('./buildmessage.js');

// a bit of a hack
var getPackage = _.once(function () {
Expand Down Expand Up @@ -414,7 +415,7 @@ exports.deploy = function (options) {
return 0;
} finally {
// Close the connection to Galaxy (otherwise Node will continue running).
conn.close();
conn && conn.close();
}
};

Expand Down

0 comments on commit d6f04ba

Please sign in to comment.