summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ioriot/src/init/ithread.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ioriot/src/init/ithread.c b/ioriot/src/init/ithread.c
index bcc31f3..953fe14 100644
--- a/ioriot/src/init/ithread.c
+++ b/ioriot/src/init/ithread.c
@@ -41,8 +41,6 @@ void* ithread_pthread_start(void *data)
while (NULL != (task = rbuffer_get_next(t->queue))) {
ithread_run_task(t, task);
- if (!rbuffer_insert(i->reuse_queue, task))
- itask_destroy(task);
pthread_mutex_lock(&i->reuse_queue_mutex);
int ret = rbuffer_insert(i->reuse_queue, task);