From 9de373287d51ddd7f346e3276608ccf10a892377 Mon Sep 17 00:00:00 2001
From: Rafael Monnerat <rafael@nexedi.com>
Date: Fri, 10 Aug 2012 19:15:54 +0900
Subject: [PATCH] Fix typo (reintroduce lock line)

---
 erp5/util/taskdistribution/__init__.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/erp5/util/taskdistribution/__init__.py b/erp5/util/taskdistribution/__init__.py
index 2891dcd8ab..c5274096d8 100644
--- a/erp5/util/taskdistribution/__init__.py
+++ b/erp5/util/taskdistribution/__init__.py
@@ -107,7 +107,8 @@ class RPCRetry(object):
             default_timeout = socket.getdefaulttimeout()
             socket.setdefaulttimeout(self.timeout)
             try:
-                return getattr(self._proxy, func_id)(*args)
+                with self.__rpc_lock:
+                    return getattr(self._proxy, func_id)(*args)
             finally:
                 socket.setdefaulttimeout(default_timeout)
 
-- 
2.30.9