aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2020-12-06 16:25:03 -0500
committerScott Murray <scott.murray@konsulko.com>2020-12-09 07:52:56 +0000
commit2a4a70d614a84c7205fab87f4de51e5ed12200e8 (patch)
tree44e658b73bc79d526f47de59a26b3124ce7a54e5
parent52f4599b444d13fc1e8ae48f423aaaedcbad3ae0 (diff)
Add missing check for playing status in Kingfisher backend "scan_start" function. Bug-AGL: SPEC-3716 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I74a9221b6d2a89a052009a279dd74166569d4766
-rw-r--r--binding/radio_impl_kingfisher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binding/radio_impl_kingfisher.c b/binding/radio_impl_kingfisher.c
index b7d243b..92abb11 100644
--- a/binding/radio_impl_kingfisher.c
+++ b/binding/radio_impl_kingfisher.c
@@ -433,7 +433,7 @@ static void kf_scan_start(radio_scan_direction_t direction,
if(!initialized)
return;
- if(scanning)
+ if(!running || scanning)
return;
scanning = true;