aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/__main__.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/__main__.py b/src/__main__.py
index b835aee..114c9af 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -286,14 +286,10 @@ try:
if not use_posix:
s.P(timeout)
s.Z(timeout)
- try:
- m.P(0)
- except ipc.BusyError:
- pass
- else:
- if s.value == 0:
- s.set_value(threshold)
- m.V()
+ m.P()
+ if s.value == 0:
+ s.set_value(threshold)
+ m.V()
else:
x.P(timeout)
c.V()