[c-host] dont use a interface that fails to create
This commit is contained in:
1 parent
4a72dab02a
commit
37c1d7ea58
1 file changed
+4
@@ -164,8 +164,12 @@ int app_main(bool * termSignal)
|
||||
{
|
||||
iface = CaptureInterfaces[i];
|
||||
DEBUG_INFO("Trying : %s", iface->getName());
|
||||
|
||||
if (!iface->create())
|
||||
{
|
||||
iface = NULL;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (iface->init())
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user