diff options
author | Scott Anderson <ascent12@hotmail.com> | 2017-09-23 16:32:25 +1200 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2017-09-23 16:32:25 +1200 |
commit | 459d138fa2f8c0ad3665cbbb393c366b895a4cde (patch) | |
tree | 9c65724cdf3dc9c3894d0bed823312894b9354fe /backend/drm/backend.c | |
parent | 8cbade355f197e919e7d392a06b9b2851bf847cc (diff) |
Add timeout to DRM cleanup
This prevents a potential infinite loop preventing us from closing
properly.
Diffstat (limited to 'backend/drm/backend.c')
-rw-r--r-- | backend/drm/backend.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |