From f54f5207c593fda482aa729e221254b7e3a83164 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Fri, 25 Jan 2013 10:36:38 +1100 Subject: [PATCH] gsmd: don't check for SMS just-in-case during a call. It seems that it can be confusing. Signed-off-by: NeilBrown --- gsm/gsmd.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gsm/gsmd.py b/gsm/gsmd.py index 1c2d7eb..e451627 100644 --- a/gsm/gsmd.py +++ b/gsm/gsmd.py @@ -232,6 +232,9 @@ class CheckSMS(Task): def __init__(self): Task.__init__(self, None) def start(self, channel): + if 'incoming' in channel.nextstate: + # now is not a good time + return channel.advance() if channel.pending_sms: channel.pending_sms = False p = Popen('gsm-getsms -n', shell=True, close_fds = True) -- 2.43.0