aboutsummaryrefslogtreecommitdiffstats
path: root/collector/connection.rb
diff options
context:
space:
mode:
authorRhenium <rhenium@rhe.jp>2013-07-29 05:32:08 +0900
committerRhenium <rhenium@rhe.jp>2013-07-29 05:32:08 +0900
commita170af32edc5f18bb4260fb81ef6c5ea885a5610 (patch)
tree7421a462bbeadd2e9fe4d7c76ea6a91b73b67ea1 /collector/connection.rb
parente2c42d9b4c4e5a5fd4a4b16744ff5973fc2d1095 (diff)
downloadaclog-a170af32edc5f18bb4260fb81ef6c5ea885a5610.tar.gz
deactivate
Diffstat (limited to 'collector/connection.rb')
-rw-r--r--collector/connection.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/collector/connection.rb b/collector/connection.rb
index 8a06b3f..c2b2cde 100644
--- a/collector/connection.rb
+++ b/collector/connection.rb
@@ -59,6 +59,13 @@ module Aclog
else
@clients[account_id].update(msg)
end
+ when "stop"
+ account_id = msg["id"]
+ if @clients[account_id]
+ @clients[account_id].stop
+ @clients.delete(account_id)
+ @logger.info("Received account stop")
+ end
else
@logger.info("Unknown message: #{msg}")
end