diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index 286ad7226..da000a624 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -687,6 +687,7 @@ sub export_gcode2 { my ($config, $extra_variables, $output_file, %params) = @_; local $SIG{'KILL'} = sub { Slic3r::debugf "Exporting cancelled; exiting thread...\n"; + Slic3r::thread_cleanup(); threads->exit(); } if $Slic3r::have_threads;