From 42c7e522f5095e947f02b2ea4c4ac28eff94d577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 11 Feb 2009 19:13:49 +0100 Subject: [PATCH] Fix client thread stop with psyco enabled --- trytond/netsvc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/trytond/netsvc.py b/trytond/netsvc.py index a002e11029..8978ac2c0b 100644 --- a/trytond/netsvc.py +++ b/trytond/netsvc.py @@ -287,6 +287,7 @@ class TinySocketServerThread(threading.Thread): try: thread = self.threads[0] thread.stop() + time.sleep(0.001) #sleep to let thread running except: pass try: