Use analysinng instead of function

This commit is contained in:
Isaac Connor 2022-01-11 10:44:23 -05:00
parent 0728c04bf4
commit 52aed5b0bf
1 changed files with 2 additions and 2 deletions

View File

@ -538,7 +538,7 @@ public:
inline Function GetFunction() const { return function; }
inline PacketQueue * GetPacketQueue() { return &packetqueue; }
inline bool Enabled() const {
if (function <= MONITOR)
if (analysing == ANALYSING_NONE)
return false;
return enabled;
}
@ -554,7 +554,7 @@ public:
return false;
}
inline bool Active() const {
if (function <= MONITOR)
if (analysing == ANALYSING_NONE)
return false;
return (enabled && shared_data->active);
}