Skip to content

Commit

Permalink
Fix freezegun when accessing from thread after stop()
Browse files Browse the repository at this point in the history
  • Loading branch information
juliomalegria-hotjar committed Nov 2, 2020
1 parent fe3a032 commit 1ef33c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions freezegun/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ def _should_use_real_time():
if not call_stack_inspection_limit:
return False

# Means stop() has already been called, so we can now return the real time
if not ignore_lists:
return True

if not ignore_lists[-1]:
return False

Expand Down

0 comments on commit 1ef33c4

Please sign in to comment.