Loading sjrpc/core/rpcconnection.py +8 −0 Original line number Diff line number Diff line Loading @@ -331,6 +331,14 @@ class RpcConnection(object): self._sock.close() # Release all running calls from this connection: for call in self._calls.values(): if 'event' in call: call['error'] = {'exception': 'RpcError', 'message': 'Connection reset by peer'} call['return'] = None call['event'].set() if callback is not None and not callable(callback): if self._handler is not None: try: Loading Loading
sjrpc/core/rpcconnection.py +8 −0 Original line number Diff line number Diff line Loading @@ -331,6 +331,14 @@ class RpcConnection(object): self._sock.close() # Release all running calls from this connection: for call in self._calls.values(): if 'event' in call: call['error'] = {'exception': 'RpcError', 'message': 'Connection reset by peer'} call['return'] = None call['event'].set() if callback is not None and not callable(callback): if self._handler is not None: try: Loading