From 3e99529be0a5fcc749dc230620d8585cc0ec22e6 Mon Sep 17 00:00:00 2001 From: Antoine Millet Date: Mon, 12 Sep 2011 16:55:55 +0200 Subject: [PATCH] Fixed bug with shutdown and running calls release. --- sjrpc/core/protocols/rpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sjrpc/core/protocols/rpc.py b/sjrpc/core/protocols/rpc.py index 1b8b614..79d457c 100644 --- a/sjrpc/core/protocols/rpc.py +++ b/sjrpc/core/protocols/rpc.py @@ -55,7 +55,7 @@ class RpcProtocol(object): def shutdown(self): # Release all waiting calls from this rpc: - for cid in self._calls: + for cid in self._calls.keys(): err = {'exception': 'RpcError', 'message': 'Connection reset by peer'} self._handle_response({'id': cid, 'return': None, 'error': err}) -- GitLab