Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 912d97b6632988de5569d2a788ef7a7de67061ae 1 parent d0a0c8a
Henrik Skupin authored

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  jsbridge/jsbridge/network.py
5  jsbridge/jsbridge/network.py
@@ -83,11 +83,12 @@ def handle_write(self):
83 83
     def read_all(self):
84 84
         import socket
85 85
         data = ''
86  
-        while 1:
  86
+        while self.connected:
87 87
             try:
88 88
                 data += self.recv(4096)
89 89
             except socket.error:
90  
-                return data
  90
+                break
  91
+        return data
91 92
 
92 93
     def handle_read(self):
93 94
         self.data = self.read_all()

0 notes on commit 912d97b

Please sign in to comment.
Something went wrong with that request. Please try again.