mirror of
https://github.com/norohind/jubilant-system-core.git
synced 2025-04-17 03:32:19 +03:00
HookSystem: fix deep copy
This commit is contained in:
parent
a552fc0361
commit
be3394ea74
@ -93,7 +93,7 @@ class HookSystem:
|
||||
|
||||
threading.Thread(
|
||||
name=f'bootstrap-hook-thread-{operation_id}',
|
||||
target=lambda: HookSystem._call_hooks(operation_id, hooks, copy.deepcopy(get_latest())),
|
||||
target=lambda: HookSystem._call_hooks(operation_id, hooks, get_latest()),
|
||||
).start()
|
||||
|
||||
@staticmethod
|
||||
@ -102,5 +102,5 @@ class HookSystem:
|
||||
threading.Thread(
|
||||
name=f'hook-{hook.__class__.__name__}-{operation_id}',
|
||||
target=hook.update,
|
||||
args=(operation_id, latest_records)
|
||||
args=(operation_id, copy.deepcopy(latest_records))
|
||||
).start()
|
||||
|
Loading…
x
Reference in New Issue
Block a user