mirror of https://github.com/aria2/aria2
				
				
				
			2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Call flush from ServerStatMan::save() * src/ServerStatMan.ccpull/1/head
							parent
							
								
									2e9c39d6ba
								
							
						
					
					
						commit
						1c6a0962a1
					
				| 
						 | 
				
			
			@ -1,3 +1,8 @@
 | 
			
		|||
2009-07-22  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 | 
			
		||||
 | 
			
		||||
	Call flush from ServerStatMan::save()
 | 
			
		||||
	* src/ServerStatMan.cc
 | 
			
		||||
 | 
			
		||||
2009-07-22  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 | 
			
		||||
 | 
			
		||||
	Check stream status after file is opened.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -80,6 +80,7 @@ bool ServerStatMan::save(std::ostream& out) const
 | 
			
		|||
{
 | 
			
		||||
  std::copy(_serverStats.begin(), _serverStats.end(),
 | 
			
		||||
	    std::ostream_iterator<SharedHandle<ServerStat> >(out, "\n"));
 | 
			
		||||
  out.flush();
 | 
			
		||||
  return !out.bad();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue