mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	connection: return false on read error
Return false to indicate that there is no more data to read or else we add the -1 to buffer_size and things go wrong..
This commit is contained in:
		
							parent
							
								
									df57656615
								
							
						
					
					
						commit
						fdfce79edb
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -150,6 +150,7 @@ static bool refill_buffer(struct pw_protocol_native_connection *conn, struct buf
 | 
				
			||||||
				continue;
 | 
									continue;
 | 
				
			||||||
			if (errno != EAGAIN || errno != EWOULDBLOCK)
 | 
								if (errno != EAGAIN || errno != EWOULDBLOCK)
 | 
				
			||||||
				goto recv_error;
 | 
									goto recv_error;
 | 
				
			||||||
 | 
								return false;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		break;
 | 
							break;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue