From 8d4eac5ea145dc6613479add7b906e7b1c29f63e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sun, 3 Apr 2011 13:27:51 +0200 Subject: [PATCH] Don't rely on python internal implementation. Set a safe timeout value as we cannot assume, that the current implementation of busy-waiting won't be changed in the future. --- radicale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale.py b/radicale.py index 8a9bd5a..a450239 100755 --- a/radicale.py +++ b/radicale.py @@ -122,7 +122,7 @@ try: # the number is irrelevant -- the only thing that matters, is that it is # larger than 0.05 # this is due to python implementing its own busy-waiting logic - server_exited.wait(10.0) + server_exited.wait(5.0) if server_exited.is_set(): break finally: