mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	Merge branch '2.0release' into develop
This commit is contained in:
		
						commit
						7de181004f
					
				
					 2 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
					@ -210,9 +210,7 @@ int SrsRtmpConn::do_cycle()
 | 
				
			||||||
    ret = service_cycle();
 | 
					    ret = service_cycle();
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    http_hooks_on_close();
 | 
					    http_hooks_on_close();
 | 
				
			||||||
    SrsStatistic* stat = SrsStatistic::instance();
 | 
					
 | 
				
			||||||
    stat->on_disconnect(_srs_context->get_id());
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    return ret;
 | 
					    return ret;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -896,6 +896,7 @@ void SrsServer::remove(SrsConnection* conn)
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    SrsStatistic* stat = SrsStatistic::instance();
 | 
					    SrsStatistic* stat = SrsStatistic::instance();
 | 
				
			||||||
    stat->kbps_add_delta(conn);
 | 
					    stat->kbps_add_delta(conn);
 | 
				
			||||||
 | 
					    stat->on_disconnect(conn->srs_id());
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    // all connections are created by server,
 | 
					    // all connections are created by server,
 | 
				
			||||||
    // so we free it here.
 | 
					    // so we free it here.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue