Skip to content

Commit

Permalink
Wait 1 second to exit to give in flight requests some chance to succeed
Browse files Browse the repository at this point in the history
  • Loading branch information
evansolomon committed Dec 10, 2014
1 parent 107752f commit 5338f91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/slack.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ class SlackBot extends Adapter
error: (error) =>
@robot.logger.error "Received error #{error.toString()}"
@robot.logger.error error.stack
process.exit 1
@robot.logger.error "Exiting in 1 second"
setTimeout process.exit.bind(process, 1), 1000

loggedIn: (self, team) =>
@robot.logger.info "Logged in as #{self.name} of #{team.name}, but not yet connected"
Expand Down

0 comments on commit 5338f91

Please sign in to comment.