Avoid flow.lua overhead if all the modules are disabled

This commit is contained in:
emanuele-f 2019-09-11 14:52:26 +02:00
parent e31afe72d6
commit e4f1d1f5d3
4 changed files with 45 additions and 8 deletions

View file

@ -8,6 +8,12 @@ local flow_module = {}
-- #################################################################
function flow_module.setup()
return(mud_utils.isMUDRecordingEnabled(interface.getId()))
end
-- #################################################################
function flow_module.protocolDetected(info)
mud_utils.handleFlow(info)
end