From 1795f9ca2c8f5dd281c9487b599526ffd5203439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Sun, 31 Jan 2016 22:23:57 +0100 Subject: [PATCH] renderer: fix eventfd check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc-André Lureau --- src/vrend_renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 8bc59a2..750d9dc 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -3736,7 +3736,7 @@ vrend_renderer_fini(void) return; vrend_free_sync_thread(); - if (vrend_state.eventfd == -1) { + if (vrend_state.eventfd != -1) { close(vrend_state.eventfd); vrend_state.eventfd = -1; }