mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
Free @_ before spawning a new thread (known old Perl bug) as an attempt to fix the unref scalars error
This commit is contained in:
@@ -545,6 +545,7 @@ sub export_gcode {
|
||||
|
||||
$self->statusbar->StartBusy;
|
||||
if ($Slic3r::have_threads) {
|
||||
@_ = ();
|
||||
$self->{export_thread} = threads->create(sub {
|
||||
$self->export_gcode2(
|
||||
$print,
|
||||
@@ -739,6 +740,7 @@ sub make_thumbnail {
|
||||
}
|
||||
};
|
||||
|
||||
@_ = ();
|
||||
$Slic3r::have_threads ? threads->create($cb)->detach : $cb->();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user