mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	Don't fail when we cannot determine the lock file path
This commit is contained in:
		
							parent
							
								
									d1362b56b7
								
							
						
					
					
						commit
						d0e26a519f
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -858,7 +858,11 @@ int pa_context_connect(
 | 
			
		|||
        if (!(flags & PA_CONTEXT_NOAUTOSPAWN) && c->conf->autospawn) {
 | 
			
		||||
            char *lf;
 | 
			
		||||
 | 
			
		||||
            lf = pa_runtime_path(AUTOSPAWN_LOCK);
 | 
			
		||||
            if (!(lf = pa_runtime_path(AUTOSPAWN_LOCK))) {
 | 
			
		||||
                pa_context_fail(c, PA_ERR_ACCESS);
 | 
			
		||||
                goto finish;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            pa_assert(c->autospawn_lock_fd <= 0);
 | 
			
		||||
            c->autospawn_lock_fd = pa_lock_lockfile(lf);
 | 
			
		||||
            pa_xfree(lf);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue