From 51f0050d68bb0025a8efd4948aacccea51708cec Mon Sep 17 00:00:00 2001 From: Victor Brekenfeld Date: Sun, 25 Nov 2018 00:33:44 +0100 Subject: [PATCH] drm: fix dropping master when killed from another tty --- src/backend/drm/legacy/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backend/drm/legacy/mod.rs b/src/backend/drm/legacy/mod.rs index 4459c15..6bd1619 100644 --- a/src/backend/drm/legacy/mod.rs +++ b/src/backend/drm/legacy/mod.rs @@ -264,10 +264,10 @@ impl Drop for LegacyDrmDevice { error!(self.logger, "Failed to reset crtc ({:?}). Error: {}", handle, err); } } - if self.priviledged { - if let Err(err) = self.drop_master() { - error!(self.logger, "Failed to drop drm master state. Error: {}", err); - } + } + if self.priviledged { + if let Err(err) = self.drop_master() { + error!(self.logger, "Failed to drop drm master state. Error: {}", err); } } }