Merge pull request #5430 from kable-wilmoth/5426

Fixed Rocket.Chat crashes at startup if Slack bridge enabled and slac…
pull/5435/head
Gabriel Engel 9 years ago committed by GitHub
commit c3b2a7eb83
  1. 7
      packages/rocketchat-slackbridge/slackbridge.js

@ -56,7 +56,12 @@ class SlackBridge {
}
});
Meteor.startup(() => {
this.populateSlackChannelMap(); // If run outside of Meteor.startup, HTTP is not defined
try {
this.populateSlackChannelMap(); // If run outside of Meteor.startup, HTTP is not defined
} catch (err) {
logger.class.error('Error attempting to connect to Slack', err);
this.disconnect();
}
});
}
}

Loading…
Cancel
Save