mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	card-restore: save the database when shutting down
If u->save_time_event is non-NULL when the module is being unloaded, it means that there are some changes to the database that haven't yet been flushed to the disk. Acked-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
		
							parent
							
								
									c87917cf0d
								
							
						
					
					
						commit
						ff85bc437c
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -608,8 +608,10 @@ void pa__done(pa_module*m) {
 | 
			
		|||
    if (!(u = m->userdata))
 | 
			
		||||
        return;
 | 
			
		||||
 | 
			
		||||
    if (u->save_time_event)
 | 
			
		||||
    if (u->save_time_event) {
 | 
			
		||||
        u->core->mainloop->time_free(u->save_time_event);
 | 
			
		||||
        pa_database_sync(u->database);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (u->database)
 | 
			
		||||
        pa_database_close(u->database);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue