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); } } }