Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Deregister a connection when it is closed
  • Loading branch information
DanielVartanov committed Jul 19, 2015
1 parent 5113ae3 commit 96ed920
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/connection.rb
Expand Up @@ -21,6 +21,7 @@ def update(seconds)
def close
bot.connection_closed
facility.connection_closed(self)
deregister!
end

protected
Expand Down

0 comments on commit 96ed920

Please sign in to comment.