kms: Fix surface drop_and_join
This commit is contained in:
parent
61149d95d0
commit
23b198f30b
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue