Skip to content

Commit

Permalink
Don't try to execute an empty voice attach/detach command.
Browse files Browse the repository at this point in the history
git-svn-id: https://nohands.svn.sourceforge.net/svnroot/nohands/trunk@23 126591fb-c623-4b62-a76d-97a8e4f34109
  • Loading branch information
samr7 committed Oct 31, 2008
1 parent a79e7f8 commit c455361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/hfconsole.in
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ class HfConsole:
else:
exc = self.command_voice_attach_dcmd

p = subprocess.Popen(exc, shell=True)
if exc:
p = subprocess.Popen(exc, shell=True)

def getprop_hfpd(self, prop):
return self.hfpd_props.Get('net.sf.nohands.hfpd.HandsFree',
Expand Down Expand Up @@ -780,7 +781,6 @@ class HfConsole:
self.configfile.write(open(self.configfile_name, 'w+'))

def ag_update_history(self, addr, name):
print "Update hist: %s/%s" % (addr, name)
addrx = self.addr_transform(addr)
has = self.configfile.has_option('history', addrx)
if not name and has:
Expand Down

0 comments on commit c455361

Please sign in to comment.