changeset 213:5c420b1f1df4

removed connect on statService, this was causing issue on first launch
author Goffi <goffi@goffi.org>
date Mon, 27 Dec 2010 15:14:28 +0100
parents 800db401585e
children e178e8f6d13a
files sat.tac
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/sat.tac	Mon Dec 27 15:12:39 2010 +0100
+++ b/sat.tac	Mon Dec 27 15:14:28 2010 +0100
@@ -435,7 +435,8 @@
 
     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 @@
         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()