Skip to content
Browse files

Merge pull request #2633 from hieupham007/timob-8472

timob-8472: fix edge case fastdev loop.
  • Loading branch information...
2 parents 7961d44 + 58e238e commit 906dd69ba8c8a28d1756abb41dcb528253b97abf @joshthecoder joshthecoder committed Jul 27, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 support/android/fastdev.py
View
5 support/android/fastdev.py
@@ -54,7 +54,10 @@ def read_tokens(socket):
tokens = []
for i in range(0, token_count):
length = read_int(socket)
- data = socket.recv(length)
+ if length == 0:
+ data = ""
+ else:
+ data = socket.recv(length)
tokens.append(data)
return tokens

0 comments on commit 906dd69

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