drm: fix dropping master when killed from another tty
@@ -264,6 +264,7 @@ impl<A: AsRawFd + 'static> Drop for LegacyDrmDevice<A> {
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);
@@ -271,4 +272,3 @@ impl<A: AsRawFd + 'static> Drop for LegacyDrmDevice<A> {
}
}
}
-}
