Skip to content

Commit

Permalink
Don't wait long to join thread while handling err.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdavis committed Mar 19, 2015
1 parent e6ef7e2 commit 701a83c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mockupdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ def going(fn, *args, **kwargs):
# We are raising an exception, just try to clean up the future.
exc_info = sys.exc_info()
try:
future(timeout=10)
# Shorter than normal timeout.
future(timeout=1)
except:
log_message = ('\nerror in %s:\n'
% format_call(inspect.currentframe()))
Expand Down

0 comments on commit 701a83c

Please sign in to comment.