mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 14:21:57 +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];
|
||||
DEBUG_INFO("Trying : %s", iface->getName());
|
||||
|
||||
if (!iface->create())
|
||||
{
|
||||
iface = NULL;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (iface->init())
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue