aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/svm/queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svm/queue.c b/src/svm/queue.c
index 2dd987b31b1..c9db454db1e 100644
--- a/src/svm/queue.c
+++ b/src/svm/queue.c
@@ -174,7 +174,7 @@ svm_queue_timedwait_inline (svm_queue_t * q, double timeout)
while (q->cursize == cursize && unix_time_now () < max_time)
CLIB_PAUSE ();
rv = unix_time_now () < max_time ? 0 : ETIMEDOUT;
- svm_queue_unlock (q);
+ svm_queue_lock (q);
return rv;
}
}