mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-15 19:52:52 +02:00
Add thread cleanup to avoid double destruction of shared XS data
This commit is contained in:
1 parent
3037b42b47
commit
8d171a297e
2 files changed
+19
-5
No files matched your search
@@ -570,6 +570,7 @@ sub export_gcode {
|
||||
});
|
||||
},
|
||||
);
|
||||
Slic3r::thread_cleanup();
|
||||
});
|
||||
$self->statusbar->SetCancelCallback(sub {
|
||||
$self->{export_thread}->kill('KILL')->join;
|
||||
@@ -744,6 +745,8 @@ sub make_thumbnail {
|
||||
} else {
|
||||
$self->on_thumbnail_made($obj_idx);
|
||||
}
|
||||
|
||||
Slic3r::thread_cleanup() if $Slic3r::have_threads;
|
||||
};
|
||||
|
||||
@_ = ();
|
||||
|
||||
Reference in new issue
Block a user