Skip to content

Commit

Permalink
Merge pull request ceph#1869 from ceph/wip-pybind-timeout
Browse files Browse the repository at this point in the history
pybind/rados: Fix timeouts for small t

Reviewed-by: Josh Durgin <[email protected]>
  • Loading branch information
jdurgin committed Jun 3, 2014
2 parents 3d0c249 + 4c22c6f commit 765ab80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pybind/rados.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def run_in_thread(target, args, timeout=0):
# poll for thread exit
while t.is_alive():
t.join(POLL_TIME_INCR)
if timeout:
if timeout and t.is_alive():
countdown = countdown - POLL_TIME_INCR
if countdown <= 0:
raise KeyboardInterrupt
Expand Down

0 comments on commit 765ab80

Please sign in to comment.