Implements proper shutdown with view interfaces

This commit is contained in:
Simone Mainardi 2019-07-22 18:43:30 +02:00
parent c8fbfa8243
commit ed5c0d4d4c
5 changed files with 45 additions and 37 deletions

View file

@ -58,12 +58,18 @@ void GenericHashEntry::updateSeen() {
/* ***************************************** */
bool GenericHashEntry::idle() {
HashEntryState GenericHashEntry::get_state() const {
if(ntop->getGlobals()->isShutdownRequested() || ntop->getGlobals()->isShutdown())
return true;
return hash_entry_state_idle;
return hash_entry_state != hash_entry_state_active;
}
return hash_entry_state;
};
/* ***************************************** */
bool GenericHashEntry::idle() {
return get_state() != hash_entry_state_active;
};
/* ***************************************** */