Skip to content

Commit 02380b7

Browse files
committed
Using RLock to prevent deadlocks
1 parent 5dcda1d commit 02380b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class BackgroundWorker:
2121
def __init__(self, queue_size=DEFAULT_QUEUE_SIZE):
2222
# type: (int) -> None
2323
self._queue = Queue(queue_size) # type: Queue
24-
self._lock = threading.Lock()
24+
self._lock = threading.RLock()
2525
self._thread = None # type: Optional[threading.Thread]
2626
self._thread_for_pid = None # type: Optional[int]
2727

0 commit comments

Comments
 (0)