Commit b97f9a1f authored by Francis Dupont's avatar Francis Dupont
Browse files

[5333] Added a closeSockets before clearInterfaces

parent 1b27ce48
...@@ -45,6 +45,9 @@ IfacesConfigParser::parse(const CfgIfacePtr& cfg, ...@@ -45,6 +45,9 @@ IfacesConfigParser::parse(const CfgIfacePtr& cfg,
bool re_detect = getBoolean(ifaces_config, "re-detect"); bool re_detect = getBoolean(ifaces_config, "re-detect");
cfg->setReDetect(re_detect); cfg->setReDetect(re_detect);
if (re_detect) { if (re_detect) {
// Interface clear will drop opened socket information
// so close them if the caller did not.
IfaceMgr::instance().clearIfaces(); IfaceMgr::instance().clearIfaces();
IfaceMgr::instance().detectIfaces(); IfaceMgr::instance().detectIfaces();
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment