lib/avahi/Client: add assert()
This commit is contained in:
		
				
					committed by
					
						
						Max Kellermann
					
				
			
			
				
	
			
			
			
						parent
						
							9a7a49350c
						
					
				
				
					commit
					6b43338e06
				
			@@ -94,6 +94,8 @@ Client::ClientCallback(AvahiClient *c, AvahiClientState state,
 | 
				
			|||||||
void
 | 
					void
 | 
				
			||||||
Client::OnReconnectTimer() noexcept
 | 
					Client::OnReconnectTimer() noexcept
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
						assert(client == nullptr);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	int error;
 | 
						int error;
 | 
				
			||||||
	client = avahi_client_new(&poll, AVAHI_CLIENT_NO_FAIL,
 | 
						client = avahi_client_new(&poll, AVAHI_CLIENT_NO_FAIL,
 | 
				
			||||||
				  ClientCallback, this,
 | 
									  ClientCallback, this,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user