From 459d138fa2f8c0ad3665cbbb393c366b895a4cde Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Sat, 23 Sep 2017 16:32:25 +1200 Subject: Add timeout to DRM cleanup This prevents a potential infinite loop preventing us from closing properly. --- backend/drm/backend.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'backend/drm/backend.c') diff --git a/backend/drm/backend.c b/backend/drm/backend.c index 68e73268..8d562007 100644 --- a/backend/drm/backend.c +++ b/backend/drm/backend.c @@ -26,6 +26,9 @@ static void wlr_drm_backend_destroy(struct wlr_backend *_backend) { return; } struct wlr_drm_backend *backend = (struct wlr_drm_backend *)_backend; + + wlr_drm_restore_outputs(backend); + for (size_t i = 0; backend->outputs && i < backend->outputs->length; ++i) { struct wlr_drm_output *output = backend->outputs->items[i]; wlr_output_destroy(&output->output); -- cgit v1.2.3