Fixed bug causing unloading of realtime module being very slow after topology change.
This commit is contained in:
parent
6d74555dad
commit
9a9e5d719c
1
TODO
1
TODO
|
|
@ -7,7 +7,6 @@ $Id$
|
|||
-------------------------------------------------------------------------------
|
||||
|
||||
* Release 1.2:
|
||||
- Find bug causing slow unloading after topology change.
|
||||
- Introduce topology_change_pending.
|
||||
- Update feature lists.
|
||||
|
||||
|
|
|
|||
|
|
@ -513,6 +513,15 @@ void ec_master_leave_operation_mode(ec_master_t *master
|
|||
ec_slave_reset(slave);
|
||||
ec_slave_request_state(slave, EC_SLAVE_STATE_PREOP);
|
||||
|
||||
// don't try to set PREOP for slaves that don't respond,
|
||||
// because of 3 second timeout.
|
||||
if (!slave->online) {
|
||||
if (master->debug_level)
|
||||
EC_DBG("Skipping to configure offline slave %i.\n",
|
||||
slave->ring_position);
|
||||
continue;
|
||||
}
|
||||
|
||||
ec_fsm_slave_start_conf(&fsm_slave, slave);
|
||||
while (ec_fsm_slave_exec(&fsm_slave)) {
|
||||
ec_master_sync_io(master);
|
||||
|
|
|
|||
Loading…
Reference in New Issue