Skip to content
Snippets Groups Projects
Commit dab3bc82 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

App: Force GC before checking if object is finalized

parent db4bf3a1
No related branches found
No related tags found
No related merge requests found
......@@ -710,11 +710,11 @@ def is_finalizer_ref(ref):
return False
def check_finalized():
gc.collect()
tup = finalizer.peek()
if tup is None:
return
gc.collect()
logger.warning('%s not finalized', name)
logger.warning('References:')
for ref in gc.get_referrers(tup[0]):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment