mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	hle: kernel: Ensure current running process is closed.
This commit is contained in:
		@@ -91,6 +91,12 @@ struct KernelCore::Impl {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    void Shutdown() {
 | 
			
		||||
        if (current_process) {
 | 
			
		||||
            current_process->Finalize();
 | 
			
		||||
            current_process->Close();
 | 
			
		||||
            current_process = nullptr;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        process_list.clear();
 | 
			
		||||
 | 
			
		||||
        // Ensures all service threads gracefully shutdown
 | 
			
		||||
@@ -112,11 +118,6 @@ struct KernelCore::Impl {
 | 
			
		||||
 | 
			
		||||
        cores.clear();
 | 
			
		||||
 | 
			
		||||
        if (current_process) {
 | 
			
		||||
            current_process->Close();
 | 
			
		||||
            current_process = nullptr;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        global_handle_table->Finalize();
 | 
			
		||||
        global_handle_table.reset();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user