mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Time out if we dont connect to galaxy in 10s
This commit is contained in:
@@ -35,6 +35,11 @@ var getGalaxy = function (context) {
|
||||
}
|
||||
|
||||
_galaxy = Meteor.connect(context.galaxy.url);
|
||||
Meteor.setTimeout(function () {
|
||||
if (_galaxy.status().status !== "connected") {
|
||||
exitWithError("Could not connect to galaxy " + context.galaxy + ": " + _galaxy.status().status);
|
||||
}
|
||||
}, 10*1000);
|
||||
}
|
||||
|
||||
return _galaxy;
|
||||
|
||||
Reference in New Issue
Block a user