Skip to content

Commit 5b040a6

Browse files
committed
point obj_data to fresh clone
1 parent 4f428bc commit 5b040a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/functional/common_child.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# SPDX-FileCopyrightText: (C) 2026 Intel Corporation
44
# SPDX-License-Identifier: Apache-2.0
55

6+
import copy
67
import json
78
import threading
89
import time
@@ -306,6 +307,7 @@ def _send_detections(self, client, obj_data, y_locations, stop_event):
306307
@param stop_event :class:`threading.Event`, publishing stops when set.
307308
"""
308309
cam_id = obj_data["id"]
310+
obj_data = copy.deepcopy(obj_data)
309311
topic = PubSub.formatTopic(PubSub.DATA_CAMERA, camera_id=cam_id)
310312
for _ in range(self._NUM_PUBLISH_ITERATIONS):
311313
for y in y_locations:

0 commit comments

Comments
 (0)