Skip to content

Commit

Permalink
Merge pull request slackapi#121 from bnied/master
Browse files Browse the repository at this point in the history
terminate Hubot when Slack disconnects
  • Loading branch information
evansolomon committed Dec 16, 2014
2 parents 29fd355 + 7d7aa62 commit 86163dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/slack.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class SlackBot extends Adapter
@client.removeListener 'open', @.open
@client.removeListener 'close', @.close
@client.removeListener 'message', @.message
process.exit 0

message: (msg) =>
return if msg.hidden
Expand Down

0 comments on commit 86163dc

Please sign in to comment.