Fix refresh of Beremiz button when connection lost
authorgreg
Sat, 30 May 2009 16:45:31 +0200
changeset 354 ff721067a75c
parent 353 c68fc75ebb06
child 355 e257fe074a90
Fix refresh of Beremiz button when connection lost
connectors/PYRO/__init__.py
--- a/connectors/PYRO/__init__.py	Sat May 30 16:44:07 2009 +0200
+++ b/connectors/PYRO/__init__.py	Sat May 30 16:45:31 2009 +0200
@@ -51,7 +51,7 @@
             except PyroError,e:
                 #pluginsroot.logger.write_error(traceback.format_exc())
                 pluginsroot.logger.write_error(str(e)+"\n")
-                pluginsroot._Disconnect()
+                pluginsroot._connector = None
                 return default
         return catcher_func
 
@@ -111,7 +111,6 @@
                 return None,None
         GetTraceVariables = PyroCatcher(_PyroGetTraceVariables,(None,None))
 
-        
         def __getattr__(self, attrName):
             member = self.__dict__.get(attrName, None)
             if member is None: