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-06 16:25:03 -0500
commit6ebbc4b470f07c87843eb43c2a5ca55b387583a5 (patch)
tree8af921d44dd8969b82e3a848f6755473b030c636
parent47d61abc94a8c7140c3950329890d0f71f5714eb (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;