diff options
-rw-r--r-- | src/queue.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/queue.h b/src/queue.h index a18b783..e93d7a4 100644 --- a/src/queue.h +++ b/src/queue.h @@ -106,6 +106,7 @@ void Queue<T>::push(T *t) if(locked) { delete t; + pthread_mutex_unlock(&mutex); return; } |