Skip to content

Commit

Permalink
Merge pull request #1 from JeremyRand/master
Browse files Browse the repository at this point in the history
Fix bug that caused data to be unreadable from namecoind sometimes.
  • Loading branch information
JeremyRand committed Dec 26, 2013
2 parents dc48ccd + 5fbc936 commit e33a82d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rpcClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ def send(self, data):
self.s.connect((self.conf['host'], int(self.conf['port'])))
#print '* Sending :', '\n', data
self.s.sendall(data)
result = ''
result = ''.decode('iso-8859-1')
while True:
try:
tmp = self.s.recv(self.size)
tmp = self.s.recv(self.size).decode('iso-8859-1')
except socket.timeout as e:
break
self.s.settimeout(time.time() - start + 2)
Expand Down

0 comments on commit e33a82d

Please sign in to comment.