mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-24 06:41:46 +00:00
[c-host] dont use a interface that fails to create
This commit is contained in:
parent
4a72dab02a
commit
37c1d7ea58
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue