# HG changeset patch # User Edouard Tisserant # Date 1562925107 -7200 # Node ID e10a1095f5778be00d30a7cea51eb050ab0b21fa # Parent af09744a468efab514502baba94c103d372a0f8f Fixed repetitive freezing of IDE when connection drops. when connection lost error was beeing displayed, the involved wxYield was calling pending plc status periodic update, itself trying to use connector. At that time connector is still not destroyed and connection is attempted again when calling GetPLCStatus. => Hack : Ensure connector is destroyed before reporting error. diff -r af09744a468e -r e10a1095f577 connectors/PYRO/__init__.py --- a/connectors/PYRO/__init__.py Wed Jul 10 11:21:13 2019 +0200 +++ b/connectors/PYRO/__init__.py Fri Jul 12 11:51:47 2019 +0200 @@ -97,8 +97,8 @@ try: return func(*args, **kwargs) except Pyro.errors.ConnectionClosedError as e: + confnodesroot._SetConnector(None) confnodesroot.logger.write_error(_("Connection lost!\n")) - confnodesroot._SetConnector(None) except Pyro.errors.ProtocolError as e: confnodesroot.logger.write_error(_("Pyro exception: %s\n") % e) except Exception as e: