diff options
author | samr7 <samr7@126591fb-c623-4b62-a76d-97a8e4f34109> | 2008-12-14 23:15:05 +0000 |
---|---|---|
committer | samr7 <samr7@126591fb-c623-4b62-a76d-97a8e4f34109> | 2008-12-14 23:15:05 +0000 |
commit | b933437c5970612d05b5e3d2bab69ac01170df01 (patch) | |
tree | 3411bd07daa46c5f43cc2735cb2c92a464163e55 | |
parent | dd1b1d54a7386aeeb27edcacb765d5bb228456d7 (diff) | |
download | nohands-b933437c5970612d05b5e3d2bab69ac01170df01.tar.gz |
Fix a problem related to auto-switching to a phone that initiates an
audio connection.
git-svn-id: http://nohands.svn.sourceforge.net/svnroot/nohands/trunk@66 126591fb-c623-4b62-a76d-97a8e4f34109
-rwxr-xr-x | data/hfconsole.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/data/hfconsole.in b/data/hfconsole.in index 847a406..45935b9 100755 --- a/data/hfconsole.in +++ b/data/hfconsole.in @@ -813,6 +813,9 @@ class HfConsole: if not self.selected_ag: # Find another AG and select it self.ag_select_search() + # If we still didn't find one, stop audio. + if not self.selected_ag: + self.ag_stop_audio_unselected() elif ag == self.selected_ag: # Maybe update buttons to reflect state self.ag_select_changed(ag) @@ -840,7 +843,8 @@ class HfConsole: self.command_mode(2) else: self.command_mode(0) - self.ag_push_audio() + if ag: + self.ag_push_audio() def ag_mine(self, ag): if self.ags_added.has_key(ag.addr): |