[c-host] dont use a interface that fails to create

This commit is contained in:
Geoffrey McRae 2019-03-01 21:41:06 +11:00
parent 4a72dab02a
commit 37c1d7ea58

View file

@ -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;