From 8f2db5feb8c9d1534ea0b66fbcfb9f09d06fc5e2 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Sat, 3 Feb 2018 11:05:42 +0100 Subject: [PATCH] Fix as per psutton review of pull request #147 --- lib/src/upper/rlc_am.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/upper/rlc_am.cc b/lib/src/upper/rlc_am.cc index a5d7f19e7..261fbd082 100644 --- a/lib/src/upper/rlc_am.cc +++ b/lib/src/upper/rlc_am.cc @@ -315,7 +315,7 @@ int rlc_am::read_pdu(uint8_t *payload, uint32_t nof_bytes) // RETX if required if(retx_queue.size() > 0) { int ret = build_retx_pdu(payload, nof_bytes); - if (ret) { + if (ret > 0) {s pthread_mutex_unlock(&mutex); return ret; }