mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06: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:
		
							parent
							
								
									48e37f97b4
								
							
						
					
					
						commit
						5494f4f385
					
				
					 3 changed files with 4 additions and 0 deletions
				
			
		|  | @ -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->(); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci