From 68cf27ae0ac2dd960d0199410b4713af7cc58dd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Thu, 29 Jul 2021 02:33:36 +0200 Subject: [PATCH] v2.17.16 --- satella/coding/concurrent/monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/satella/coding/concurrent/monitor.py b/satella/coding/concurrent/monitor.py index 7fc35f3f..c889b391 100644 --- a/satella/coding/concurrent/monitor.py +++ b/satella/coding/concurrent/monitor.py @@ -248,7 +248,7 @@ class MonitorSet(set, Monitor): :param item: item to insert :return: whether the item was successfully inserted """ - with self: + with Monitor.synchronize_on(self): if item in self: return False self.add(item) -- GitLab