mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +08:00
修复rtsp推流超时检测bug
This commit is contained in:
parent
d482cd29c4
commit
49c8d4fb8d
@ -119,8 +119,9 @@ void RtspSession::onManager() {
|
||||
}
|
||||
}
|
||||
|
||||
//组播不检查心跳是否超时
|
||||
if (_rtpType == PlayerBase::RTP_UDP && _ticker.elapsedTime() > 15 * 1000) {
|
||||
|
||||
if ((_rtpType == PlayerBase::RTP_UDP || _pushSrc ) && _ticker.elapsedTime() > 15 * 1000) {
|
||||
//如果是推流端或者rtp over udp类型的播放端,那么就做超时检测
|
||||
WarnL << "RTSP会话超时:" << get_peer_ip();
|
||||
shutdown();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user