monitor-manager-kms: Don't add GPU if it fails

This is a small mistake spotted while working on a solution
for #77. When a GPU fails to initialize, we're adding them
anyway, which might have pretty bad consequences when trying
to use these NULL GPUs.

Issue: #77
This commit is contained in:
Georges Basile Stavracas Neto 2018-03-17 21:44:41 -03:00 committed by Jonas Ådahl
parent 7fdac6d310
commit 773b8384fa

View File

@ -683,6 +683,7 @@ meta_monitor_manager_kms_initable_init (GInitable *initable,
{
g_warning ("Failed to open secondary gpu '%s': %s",
gpu_path, secondary_error->message);
continue;
}
meta_monitor_manager_add_gpu (META_MONITOR_MANAGER (manager_kms),