mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Await plugin cleanup
This commit is contained in:
		@@ -610,10 +610,10 @@ const setupTasks = async function () {
 | 
			
		||||
 | 
			
		||||
    const cleanupPlugins = await loadPlugins();
 | 
			
		||||
 | 
			
		||||
    const exitProcess = () => {
 | 
			
		||||
    const exitProcess = async () => {
 | 
			
		||||
        statsEndpoint.onExit();
 | 
			
		||||
        if (typeof cleanupPlugins === 'function') {
 | 
			
		||||
            cleanupPlugins();
 | 
			
		||||
            await cleanupPlugins();
 | 
			
		||||
        }
 | 
			
		||||
        process.exit();
 | 
			
		||||
    };
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user