summaryrefslogtreecommitdiff
path: root/libports
diff options
context:
space:
mode:
Diffstat (limited to 'libports')
-rw-r--r--libports/manage-multithread.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libports/manage-multithread.c b/libports/manage-multithread.c
index f859feba..6a0fc670 100644
--- a/libports/manage-multithread.c
+++ b/libports/manage-multithread.c
@@ -102,7 +102,10 @@ ports_manage_port_operations_multithread (struct port_bucket *bucket,
{
spin_lock (&lock);
if (totalthreads != 1)
- goto startover;
+ {
+ spin_unlock (&lock);
+ goto startover;
+ }
return;
}
else