mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: remove warning
When we get EPIPE from a client send, pass the error code without logging a warning. The caller will log an appropriate message instead. Fixes #2754
This commit is contained in:
		
							parent
							
								
									384ec63ae4
								
							
						
					
					
						commit
						15e4e6bcbc
					
				
					 1 changed files with 0 additions and 6 deletions
				
			
		| 
						 | 
					@ -266,17 +266,12 @@ static int client_try_flush_messages(struct client *client)
 | 
				
			||||||
				int res = -errno;
 | 
									int res = -errno;
 | 
				
			||||||
				if (res == -EINTR)
 | 
									if (res == -EINTR)
 | 
				
			||||||
					continue;
 | 
										continue;
 | 
				
			||||||
				if (res != -EAGAIN && res != -EWOULDBLOCK)
 | 
					 | 
				
			||||||
					pw_log_warn("client %p: send channel:%u %zu, error %d: %m",
 | 
					 | 
				
			||||||
						    client, m->channel, size, res);
 | 
					 | 
				
			||||||
				return res;
 | 
									return res;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					 | 
				
			||||||
			client->out_index += sent;
 | 
								client->out_index += sent;
 | 
				
			||||||
			break;
 | 
								break;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -296,7 +291,6 @@ int client_flush_messages(struct client *client)
 | 
				
			||||||
		if (res != -EAGAIN && res != -EWOULDBLOCK)
 | 
							if (res != -EAGAIN && res != -EWOULDBLOCK)
 | 
				
			||||||
			return res;
 | 
								return res;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue