From aa0eac4f93b80537d02123715842d594a8ff3aad Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Thu, 6 Oct 2016 17:05:46 +0200 Subject: lib: Fix shutdown with pending SDUs The SDU's were not correctly removed upon shutdown, peek should be pop. --- src/lib/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/dev.c') diff --git a/src/lib/dev.c b/src/lib/dev.c index 8e1ee342..8556d6e2 100644 --- a/src/lib/dev.c +++ b/src/lib/dev.c @@ -255,7 +255,7 @@ void ap_fini() pthread_rwlock_wrlock(&ai.data_lock); /* remove all remaining sdus */ - while ((i = shm_ap_rbuff_peek_idx(ai.rb)) >= 0) + while ((i = shm_ap_rbuff_pop_idx(ai.rb)) >= 0) shm_rdrbuff_remove(ai.rdrb, i); if (ai.fds != NULL) -- cgit v1.2.3