Skip to content

Commit be60345

Browse files
committed
bigger lock
1 parent cd091d5 commit be60345

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sentry_sdk/integrations/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,12 +281,12 @@ def setup_integrations(
281281

282282

283283
def _enable_integration(integration: "Integration") -> "Optional[Integration]":
284-
if integration.identifier in _installed_integrations:
285-
return integration
284+
with _installer_lock:
285+
if integration.identifier in _installed_integrations:
286+
return integration
286287

287-
client = sentry_sdk.get_client()
288+
client = sentry_sdk.get_client()
288289

289-
with _installer_lock:
290290
logger.debug(
291291
"Setting up previously not enabled integration %s", integration.identifier
292292
)

0 commit comments

Comments
 (0)