common.loads() should return time only if asked to

This commit is contained in:
Roman Zeyde
2014-07-21 13:29:27 +03:00
parent 5d71431c7c
commit 3ccf4ff188
5 changed files with 15 additions and 10 deletions

View File

@@ -27,8 +27,7 @@ class Reader(object):
if data:
block.extend(data)
if len(block) == self.BUFSIZE:
_, values = common.loads(str(block))
return values
return common.loads(str(block))
time.sleep(self.WAIT)