mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-26 08:36:28 +00:00
[c-host] dont use a interface that fails to create
This commit is contained in:
parent
4a72dab02a
commit
37c1d7ea58
@ -164,8 +164,12 @@ int app_main(bool * termSignal)
|
|||||||
{
|
{
|
||||||
iface = CaptureInterfaces[i];
|
iface = CaptureInterfaces[i];
|
||||||
DEBUG_INFO("Trying : %s", iface->getName());
|
DEBUG_INFO("Trying : %s", iface->getName());
|
||||||
|
|
||||||
if (!iface->create())
|
if (!iface->create())
|
||||||
|
{
|
||||||
|
iface = NULL;
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (iface->init())
|
if (iface->init())
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user