From 2ae2c6a3115ce99a166b8b9ddf43518c50c84ac6 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 20 May 2012 16:29:52 +0200 Subject: [PATCH] Remove thread warnings --- lib/Slic3r/GUI/Plater.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index 93e581795..5c4a016c0 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -529,6 +529,7 @@ sub on_export_completed { my $self = shift; my ($message) = @_; + $self->{export_thread}->detach; $self->{export_thread} = undef; $self->statusbar->SetCancelCallback(undef); $self->statusbar->StopBusy; @@ -540,6 +541,7 @@ sub on_export_failed { my $self = shift; my ($message) = @_; + $self->{export_thread}->detach; $self->{export_thread} = undef; $self->statusbar->SetCancelCallback(undef); $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 {