From 79cdc28015b28e81b2f99c58ea1accc82d1b172a Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Mon, 30 Aug 2021 14:53:23 +0200 Subject: [PATCH] nas_test_common: call NAS layer from stack thread context since NAS layers insn't thread safe, all calls must come from the same thread --- srsue/hdr/stack/upper/test/nas_test_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsue/hdr/stack/upper/test/nas_test_common.h b/srsue/hdr/stack/upper/test/nas_test_common.h index faa40bf51..bc88a9e89 100644 --- a/srsue/hdr/stack/upper/test/nas_test_common.h +++ b/srsue/hdr/stack/upper/test/nas_test_common.h @@ -155,7 +155,7 @@ public: } bool switch_on() { - nas->switch_on(); + task_sched.defer_task([this]() { nas->switch_on(); }); return true; } void write_sdu(uint32_t lcid, srsran::unique_byte_buffer_t sdu) { pdcp->write_sdu(lcid, std::move(sdu)); }