From 643fd1ccbed1d92c04c5979a5527905ce1009b1a Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Fri, 2 Jun 2017 12:03:51 +0200 Subject: [PATCH] proper close of rf when cell not found --- lib/examples/pdsch_ue.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/examples/pdsch_ue.c b/lib/examples/pdsch_ue.c index 06b3c93a9..72dc36731 100644 --- a/lib/examples/pdsch_ue.c +++ b/lib/examples/pdsch_ue.c @@ -330,10 +330,7 @@ int main(int argc, char **argv) { fprintf(stderr, "Error setting main thread affinity to %d \n", prog_args.cpu_affinity); exit(-1); } - } - - - + } } if (prog_args.net_port > 0) { @@ -398,6 +395,7 @@ int main(int argc, char **argv) { } while (ret == 0 && !go_exit); if (go_exit) { + srslte_rf_close(&rf); exit(0); }