Sets all hash entries to idle during shutdown

This commit is contained in:
Simone Mainardi 2019-08-12 14:05:08 +02:00
parent d0886b1f9e
commit ac2ce0c058
5 changed files with 28 additions and 37 deletions

View file

@ -69,11 +69,7 @@ void GenericHashEntry::set_state(HashEntryState s) {
/* ***************************************** */
HashEntryState GenericHashEntry::get_state() {
/* When the interface is no longer running it is safe to assume the entry is idle */
if(iface && (!iface->isRunning()))
set_hash_entry_state_idle();
return(hash_entry_state);
return hash_entry_state;
};
/* ***************************************** */