removed connect on statService, this was causing issue on first launch
This commit is contained in:
parent
222facb7d6
commit
44305e564b
1 changed files with 3 additions and 2 deletions
5
sat.tac
5
sat.tac
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue