Skip to content

Commit

Permalink
fix rlock issue
Browse files Browse the repository at this point in the history
  • Loading branch information
siyangqiu committed Aug 13, 2024
1 parent 7143320 commit 67f3a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agentops/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def _flush_queue(self) -> None:
if not self.is_running:
return
with self.lock:
queue_copy = copy.deepcopy(self.queue) # Copy the current items
queue_copy = self.queue[:] # Copy the current items
self.queue = []

if len(queue_copy) > 0:
Expand Down

0 comments on commit 67f3a72

Please sign in to comment.