1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Fix disconnect RTSP connection has assertion, resulting in program exit

This commit is contained in:
夏立新 2020-02-17 18:46:05 +08:00
parent df3ec15cd1
commit d6e11706ec
4 changed files with 25 additions and 4 deletions

View file

@ -179,6 +179,7 @@ SrsRtspListener::SrsRtspListener(SrsServer* svr, SrsListenerType t, SrsConfDirec
srs_assert(type == SrsListenerRtsp);
if (type == SrsListenerRtsp) {
caster = new SrsRtspCaster(c);
caster->initialize();
}
}