mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	bluetooth: accept temporarily unavailable error
This commit is contained in:
		
							parent
							
								
									2d903bae9a
								
							
						
					
					
						commit
						362d196093
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -876,7 +876,7 @@ static int hsp_process_render(struct userdata *u) {
 | 
			
		|||
        pa_assert(l != 0);
 | 
			
		||||
 | 
			
		||||
        if (l < 0) {
 | 
			
		||||
            if (errno == EINTR)
 | 
			
		||||
            if (errno == EINTR || errno == EAGAIN)
 | 
			
		||||
                continue;
 | 
			
		||||
            else {
 | 
			
		||||
                pa_log_error("Failed to write data to SCO socket: %s", pa_cstrerror(errno));
 | 
			
		||||
| 
						 | 
				
			
			@ -921,7 +921,7 @@ static int hsp_process_push(struct userdata *u) {
 | 
			
		|||
        pa_memblock_release(memchunk.memblock);
 | 
			
		||||
 | 
			
		||||
        if (l <= 0) {
 | 
			
		||||
            if (l < 0 && errno == EINTR)
 | 
			
		||||
            if (l < 0 && (errno == EINTR || errno == EAGAIN))
 | 
			
		||||
                continue;
 | 
			
		||||
            else {
 | 
			
		||||
                pa_log_error("Failed to read data from SCO socket: %s", l < 0 ? pa_cstrerror(errno) : "EOF");
 | 
			
		||||
| 
						 | 
				
			
			@ -1044,7 +1044,7 @@ static int a2dp_process_render(struct userdata *u) {
 | 
			
		|||
        pa_assert(l != 0);
 | 
			
		||||
 | 
			
		||||
        if (l < 0) {
 | 
			
		||||
            if (errno == EINTR)
 | 
			
		||||
            if (errno == EINTR || errno == EAGAIN)
 | 
			
		||||
                continue;
 | 
			
		||||
            else {
 | 
			
		||||
                pa_log_error("Failed to write data to socket: %s", pa_cstrerror(errno));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue