kms: Fix surface drop_and_join

This commit is contained in:
Victoria Brekenfeld 2026-05-07 19:34:01 +02:00 committed by Victoria Brekenfeld
parent 61149d95d0
commit 23b198f30b

View file

@ -464,7 +464,7 @@ impl Surface {
pub fn drop_and_join(mut self) {
let thread = self.thread.take();
let _ = self;
std::mem::drop(self);
if let Some(thread) = thread {
let name = thread.thread().name().unwrap().to_string();
let _ = thread.join();