Skip to content

Commit 2bb23a2

Browse files
antonpirkercolin-sentry
authored andcommitted
comment
1 parent 43617ba commit 2bb23a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sentry_sdk/_log_batcher.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ def _ensure_thread(self):
4444
return True
4545

4646
with self._lock:
47-
# Double-checked locking
47+
# Recheck to make sure another thread didn't get here and start the
48+
# the flusher in the meantime
4849
if self._flusher_pid == pid:
4950
return True
5051

0 commit comments

Comments
 (0)