correct wait_calc

This commit is contained in:
Shay Palachy
2016-09-04 12:41:58 +03:00
parent 5e4689ee3a
commit 9af51b60db
+1 -1
View File
@@ -479,7 +479,7 @@ def cachier(stale_after=None, next_time=False, pickle_reload=True,
core.mark_entry_not_calculated(key)
# print('And it is fresh!')
return entry['value']
if entry['being_calculated']:
if entry['being_calculated'] and wait_calc:
# print('No value but already being calculated. Waiting.')
return core.wait_on_entry_calc(key)
# core.mark_entry_being_calculated(key)