xwayland: Fix typo

Check the unix_fd, which is the one just created, the abstract_fd
is already checked above.
This commit is contained in:
Carlos Garnacho 2016-08-06 16:16:41 +02:00
parent 8913cbb06d
commit dd549604e2

View File

@ -426,7 +426,7 @@ choose_xdisplay (MetaXWaylandManager *manager)
} }
manager->unix_fd = bind_to_unix_socket (display); manager->unix_fd = bind_to_unix_socket (display);
if (manager->abstract_fd < 0) if (manager->unix_fd < 0)
{ {
unlink (lock_file); unlink (lock_file);
close (manager->abstract_fd); close (manager->abstract_fd);