From a170af32edc5f18bb4260fb81ef6c5ea885a5610 Mon Sep 17 00:00:00 2001 From: Rhenium Date: Mon, 29 Jul 2013 05:32:08 +0900 Subject: deactivate --- collector/connection.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'collector/connection.rb') 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 -- cgit v1.2.3