summaryrefslogtreecommitdiff
path: root/pjlib/src/pjlib-test/ioq_unreg.c
diff options
context:
space:
mode:
Diffstat (limited to 'pjlib/src/pjlib-test/ioq_unreg.c')
-rw-r--r--pjlib/src/pjlib-test/ioq_unreg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pjlib/src/pjlib-test/ioq_unreg.c b/pjlib/src/pjlib-test/ioq_unreg.c
index 6b19ed1f..f30510d4 100644
--- a/pjlib/src/pjlib-test/ioq_unreg.c
+++ b/pjlib/src/pjlib-test/ioq_unreg.c
@@ -93,6 +93,7 @@ static void on_read_complete(pj_ioqueue_key_t *key,
if (PJ_TIME_VAL_GTE(now, time_to_unregister)) {
sock_data.unregistered = 1;
pj_ioqueue_unregister(key);
+ pj_mutex_unlock(sock_data.mutex);
return;
}
}