Permalink
Browse files

Bug 722707 - Due to changes in Python 2.7.2 the EBADF error is handle…

…d internally now but causes JSBridge to stay in an endless loop. r=ctalbert
  • Loading branch information...
1 parent d0a0c8a commit 912d97b6632988de5569d2a788ef7a7de67061ae @whimboo whimboo committed Feb 1, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 jsbridge/jsbridge/network.py
@@ -83,11 +83,12 @@ def handle_write(self):
def read_all(self):
import socket
data = ''
- while 1:
+ while self.connected:
try:
data += self.recv(4096)
except socket.error:
- return data
+ break
+ return data
def handle_read(self):
self.data = self.read_all()

0 comments on commit 912d97b

Please sign in to comment.