Skip to content

Commit 4854271

Browse files
authored
Update packages/proto-plus/proto/marshal/marshal.py
1 parent 896ec8e commit 4854271

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/proto-plus/proto/marshal/marshal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def __new__(cls, *, name: str):
265265
"""
266266
klass = cls._instances.get(name)
267267
if klass is None:
268-
with cls._lock:
268+
with cls._instance_creation_lock:
269269
# Double check inside lock to confirm another thread hasn't
270270
# created the instance while we were waiting for the lock.
271271
klass = cls._instances.get(name)

0 commit comments

Comments
 (0)