summaryrefslogtreecommitdiffstats
path: root/snd.c
diff options
context:
space:
mode:
Diffstat (limited to 'snd.c')
-rw-r--r--snd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/snd.c b/snd.c
index e1fec25..4af8287 100644
--- a/snd.c
+++ b/snd.c
@@ -69,6 +69,9 @@ void ril_request_set_mute(RIL_Token t, void *data, int length)
if (data == NULL || length < (int) sizeof(int))
return;
+ if (ril_radio_state_complete(RADIO_STATE_OFF, t))
+ return;
+
value = (int *) data;
mute = *value ? 1 : 0;