mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-21 23:49:28 -07: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:
@@ -288,6 +288,7 @@ sub check_version {
|
||||
my %p = @_;
|
||||
Slic3r::debugf "Checking for updates...\n";
|
||||
|
||||
@_ = ();
|
||||
threads->create(sub {
|
||||
my $ua = LWP::UserAgent->new;
|
||||
$ua->timeout(10);
|
||||
|
||||
@@ -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