From be3394ea74a33efdf5235b60ff223a974decc8d1 Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Thu, 21 Apr 2022 18:55:18 +0300 Subject: [PATCH] HookSystem: fix deep copy --- HookSystem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HookSystem.py b/HookSystem.py index 8342dc0..867eca7 100644 --- a/HookSystem.py +++ b/HookSystem.py @@ -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()