From 77df83250f806c3f69f159fc38b96569a389832c Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 7 Jan 2014 19:26:23 -0500 Subject: [PATCH] Restore accidentally deleted polling --- python/nrepl_fireplace.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/nrepl_fireplace.py b/python/nrepl_fireplace.py index ae74fe3..c25b858 100644 --- a/python/nrepl_fireplace.py +++ b/python/nrepl_fireplace.py @@ -75,6 +75,8 @@ class Connection: return '' def receive(self, char=None): + while len(select.select([self.socket], [], [], 0.1)[0]) == 0: + self.poll() f = self.socket.makefile() try: return bdecode(f)