From: NeilBrown Date: Thu, 24 Jan 2013 23:36:38 +0000 (+1100) Subject: gsmd: don't check for SMS just-in-case during a call. X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=f54f5207c593fda482aa729e221254b7e3a83164;p=plato.git gsmd: don't check for SMS just-in-case during a call. It seems that it can be confusing. Signed-off-by: NeilBrown --- 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)