延迟清空状态

This commit is contained in:
xiongziliang
2021-01-17 10:28:06 +08:00
parent c445ad2cdf
commit d879c5901d
4 changed files with 11 additions and 5 deletions

View File

@@ -133,7 +133,7 @@ void RtmpPlayer::onPlayResult_l(const SockException &ex, bool handshake_done) {
//创建rtmp数据接收超时检测定时器
_rtmp_recv_timer = std::make_shared<Timer>(timeout_ms / 2000.0, lam, getPoller());
} else {
teardown();
shutdown(SockException(Err_shutdown,"teardown"));
}
}