Remove thread warnings
This commit is contained in:
parent
59ba34caf3
commit
2ae2c6a311
1 changed files with 3 additions and 1 deletions
|
@ -529,6 +529,7 @@ sub on_export_completed {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my ($message) = @_;
|
my ($message) = @_;
|
||||||
|
|
||||||
|
$self->{export_thread}->detach;
|
||||||
$self->{export_thread} = undef;
|
$self->{export_thread} = undef;
|
||||||
$self->statusbar->SetCancelCallback(undef);
|
$self->statusbar->SetCancelCallback(undef);
|
||||||
$self->statusbar->StopBusy;
|
$self->statusbar->StopBusy;
|
||||||
|
@ -540,6 +541,7 @@ sub on_export_failed {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my ($message) = @_;
|
my ($message) = @_;
|
||||||
|
|
||||||
|
$self->{export_thread}->detach;
|
||||||
$self->{export_thread} = undef;
|
$self->{export_thread} = undef;
|
||||||
$self->statusbar->SetCancelCallback(undef);
|
$self->statusbar->SetCancelCallback(undef);
|
||||||
$self->statusbar->StopBusy;
|
$self->statusbar->StopBusy;
|
||||||
|
@ -605,7 +607,7 @@ sub make_thumbnail {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$Slic3r::have_threads ? threads->create($cb) : $cb->();
|
$Slic3r::have_threads ? threads->create($cb)->detach : $cb->();
|
||||||
}
|
}
|
||||||
|
|
||||||
sub make_thumbnail2 {
|
sub make_thumbnail2 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue