mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	zeroconf-publish: Add locking around pa_mainloop_api_once()
Commit e1e154c737 added locking around
pa_mainloop_api_once() everywhere except pa__done(). This fixes that
omission.
			
			
This commit is contained in:
		
							parent
							
								
									568702f44e
								
							
						
					
					
						commit
						d03ffdccdb
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -807,7 +807,9 @@ void pa__done(pa_module*m) {
 | 
				
			||||||
    if (!(u = m->userdata))
 | 
					    if (!(u = m->userdata))
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    pa_threaded_mainloop_lock(u->mainloop);
 | 
				
			||||||
    pa_mainloop_api_once(u->api, client_free, u);
 | 
					    pa_mainloop_api_once(u->api, client_free, u);
 | 
				
			||||||
 | 
					    pa_threaded_mainloop_unlock(u->mainloop);
 | 
				
			||||||
    pa_asyncmsgq_wait_for(u->thread_mq.outq, AVAHI_MESSAGE_SHUTDOWN_COMPLETE);
 | 
					    pa_asyncmsgq_wait_for(u->thread_mq.outq, AVAHI_MESSAGE_SHUTDOWN_COMPLETE);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    pa_threaded_mainloop_stop(u->mainloop);
 | 
					    pa_threaded_mainloop_stop(u->mainloop);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue