Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
Merge pull request #38 from alindeman/alindeman/ignore-disconnect-errors
Browse files Browse the repository at this point in the history
Ignores socket errors that occur during shut_down
  • Loading branch information
jimmycuadra committed Feb 22, 2016
2 parents 9a11d47 + f6ab143 commit b72d524
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/lita/adapters/hipchat/connector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def set_topic(room_jid, topic)
def shut_down
Lita.logger.info("Disconnecting from HipChat.")
client.close
rescue IOError, SystemCallError => e
Lita.logger.warn("Encountered error during disconnect: #{e}")
end

private
Expand Down

0 comments on commit b72d524

Please sign in to comment.