mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	don't add extra , to result string
This commit is contained in:
		
							parent
							
								
									f392edd66c
								
							
						
					
					
						commit
						50450923df
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -394,13 +394,15 @@ namespace client
 | 
			
		|||
 | 
			
		||||
	void I2PControlService::RouterInfoHandler (const boost::property_tree::ptree& params, std::ostringstream& results)
 | 
			
		||||
	{
 | 
			
		||||
		bool first = true;
 | 
			
		||||
		for (auto it = params.begin (); it != params.end (); it++)
 | 
			
		||||
		{
 | 
			
		||||
			LogPrint (eLogDebug, "I2PControl: RouterInfo request: ", it->first);
 | 
			
		||||
			auto it1 = m_RouterInfoHandlers.find (it->first);
 | 
			
		||||
			if (it1 != m_RouterInfoHandlers.end ())
 | 
			
		||||
			{
 | 
			
		||||
				if (it != params.begin ()) results << ",";
 | 
			
		||||
				if (!first) results << ","; 
 | 
			
		||||
				else first = false;		
 | 
			
		||||
				(this->*(it1->second))(results);
 | 
			
		||||
			}
 | 
			
		||||
			else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue