From af9092ff6f115db18371463a27eea397b390a85c Mon Sep 17 00:00:00 2001 From: Antoine Millet Date: Tue, 5 Jun 2012 11:21:00 +0200 Subject: [PATCH] Fixed bug in reader dispatch --- sjrpc/core/rpcconnection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sjrpc/core/rpcconnection.py b/sjrpc/core/rpcconnection.py index 8d3ee42..2568804 100644 --- a/sjrpc/core/rpcconnection.py +++ b/sjrpc/core/rpcconnection.py @@ -238,7 +238,7 @@ class RpcConnection(object): self._inbound_buffer += buf # Process and dispatch all inbound data: - while self._remains <= len(self._inbound_buffer): + while self._remains <= 0: self._dispatch() def _dispatch(self): -- GitLab