From 2135cbc2faab189d4b2a8eb5500a9a245be569f5 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 5 Nov 2012 23:02:59 +0400 Subject: [PATCH] bugfix: restore method name --- processor.py | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/processor.py b/processor.py index 8596625..749f383 100644 --- a/processor.py +++ b/processor.py @@ -270,9 +270,6 @@ class ResponseDispatcher(threading.Thread): method = response.get('method') params = response.get('params') - if method == "blockchain.address.subscribe2": - method = "blockchain.address.subscribe" - # A notification if internal_id is None: # and method is not None and params is not None: self.notification(method, params, response) @@ -288,6 +285,8 @@ class ResponseDispatcher(threading.Thread): if session.stopped(): continue if session.contains_subscription(subdesc): + if response.get('method') == "blockchain.address.subscribe2": + response['method'] = "blockchain.address.subscribe" session.send_response(response) def send_response(self, internal_id, response): -- 1.7.1