equal
deleted
inserted
replaced
161 object is recreated meanwhile, |
161 object is recreated meanwhile, |
162 so we must not keep ref to it here |
162 so we must not keep ref to it here |
163 """ |
163 """ |
164 current_status, log_count = confnodesroot._connector.GetPyroProxy().GetPLCstatus() |
164 current_status, log_count = confnodesroot._connector.GetPyroProxy().GetPLCstatus() |
165 if current_status == "Dirty": |
165 if current_status == "Dirty": |
166 """ |
166 # Some bad libs with static symbols may polute PLC |
167 Some bad libs with static symbols may polute PLC |
167 # ask runtime to suicide and come back again |
168 ask runtime to suicide and come back again |
168 |
169 """ |
|
170 confnodesroot.logger.write(_("Force runtime reload\n")) |
169 confnodesroot.logger.write(_("Force runtime reload\n")) |
171 confnodesroot._connector.GetPyroProxy().ForceReload() |
170 confnodesroot._connector.GetPyroProxy().ForceReload() |
172 confnodesroot._Disconnect() |
171 confnodesroot._Disconnect() |
173 # let remote PLC time to resurect.(freeze app) |
172 # let remote PLC time to resurect.(freeze app) |
174 sleep(0.5) |
173 sleep(0.5) |