浏览代码

Avoid calling unregistration hook twice if it triggered some data management that kept a busy reference

Samuel Thibault 6 年之前
父节点
当前提交
e8470f01d6
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/datawizard/interfaces/data_interface.c

+ 1 - 0
src/datawizard/interfaces/data_interface.c

@@ -889,6 +889,7 @@ retry_busy:
 	if (handle->unregister_hook)
 	{
 		handle->unregister_hook(handle);
+		handle->unregister_hook = NULL;
 	}
 
 	/* Wait for finished requests to release the handle */