Skip to content

Commit

Permalink
Merge 7c3def0 into 3ad0308
Browse files Browse the repository at this point in the history
  • Loading branch information
woshihaoren committed Sep 13, 2018
2 parents 3ad0308 + 7c3def0 commit b818c44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions timeout_decorator/timeout_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ def value(self):
"""Read-only property containing data returned from function."""
if self.ready is True:
flag, load = self.__queue.get()
while self.__process.is_alive():
time.sleep(0.01)
if flag:
return load
raise load

0 comments on commit b818c44

Please sign in to comment.