Skip to content

Commit

Permalink
fix(unetpy): minor fix in the receive method
Browse files Browse the repository at this point in the history
  • Loading branch information
prasadtiru committed Sep 8, 2019
1 parent 79f03cc commit efe6034
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contrib/Unet-Python-API/unetpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def receive(self):
elif self.timeout > 0:
deadline = int(round(_time.time() * 1000)) + self.timeout
ntf = None
while self.waiting.wait():
while not self.waiting.is_set():
timeRemaining = -1
if self.timeout == 0:
timeRemaining = 0
Expand All @@ -469,7 +469,6 @@ def receive(self):
if (self.localProtocol == p):
return dg
except:
self.waiting.clear()
self.waiting = None
return None

Expand Down

0 comments on commit efe6034

Please sign in to comment.