removed connect on statService, this was causing issue on first launch

This commit is contained in:
Goffi 2010-12-27 15:14:28 +01:00
commit 44305e564b

View file

@ -435,7 +435,8 @@ class SAT(service.Service):
def startService(self):
info("Salut à toi ô mon frère !")
self.connect()
#TODO: manage autoconnect
#self.connect()
def stopService(self):
self.memory.save()
@ -552,7 +553,7 @@ class SAT(service.Service):
profile = self.memory.getProfileName(profile_key)
if not profile:
error (_('asking connection status for a non-existant profile'))
raise Exception #TODO: raise a proper exception
return
if not self.profiles.has_key(profile):
return False
return self.profiles[profile].isConnected()