mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-19 07:43:01 +00:00
Implements proper shutdown with view interfaces
This commit is contained in:
parent
c8fbfa8243
commit
ed5c0d4d4c
5 changed files with 45 additions and 37 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
/* ***************************************** */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue