Removes unnecessary GenericHash::notify_transition

This commit is contained in:
Simone Mainardi 2019-10-25 19:25:21 +02:00
parent 796316b64c
commit 96eb183913
3 changed files with 3 additions and 27 deletions

View file

@ -68,12 +68,8 @@ void GenericHashEntry::set_state(HashEntryState s) {
&& (!iface || iface->isRunning()))
ntop->getTrace()->traceEvent(TRACE_ERROR, "Internal error: invalid state transition %d -> %d",
hash_entry_state, s);
else {
else
hash_entry_state = s;
if(hash_table)
hash_table->notify_transition(s);
}
};
/* ***************************************** */