Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions notecard/notecard.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,8 @@ def _transact(self, req_bytes, rsp_expected,
# Notecard with requests.
time.sleep(0.005)

# Query the Notecard every 50 ms to see if there's data available to
# read.
start = start_timeout()
available = 0
while available == 0:
Expand All @@ -711,6 +713,8 @@ def _transact(self, req_bytes, rsp_expected,
raise Exception('Timed out while querying Notecard for ' + \
'available data.')

time.sleep(0.05)

return self.receive()

def Reset(self):
Expand Down