mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	device-restore: Sync the database on unload
If there are unsaved changes, those need to be written to disk before the module is unloaded, otherwise the changes are lost.
This commit is contained in:
		
							parent
							
								
									facfd3a664
								
							
						
					
					
						commit
						c49c6b75f0
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1321,8 +1321,10 @@ void pa__done(pa_module*m) {
 | 
			
		|||
    if (u->connection_unlink_hook_slot)
 | 
			
		||||
        pa_hook_slot_free(u->connection_unlink_hook_slot);
 | 
			
		||||
 | 
			
		||||
    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