mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
修复forward崩溃
This commit is contained in:
parent
6696782d56
commit
49853d2b8a
2 changed files with 1 additions and 2 deletions
2
trunk/src/app/srs_app_forward.cpp
Normal file → Executable file
2
trunk/src/app/srs_app_forward.cpp
Normal file → Executable file
|
@ -68,8 +68,6 @@ SrsForwarder::SrsForwarder(SrsSource* _source)
|
||||||
|
|
||||||
SrsForwarder::~SrsForwarder()
|
SrsForwarder::~SrsForwarder()
|
||||||
{
|
{
|
||||||
on_unpublish();
|
|
||||||
|
|
||||||
srs_freep(pthread);
|
srs_freep(pthread);
|
||||||
srs_freep(queue);
|
srs_freep(queue);
|
||||||
srs_freep(jitter);
|
srs_freep(jitter);
|
||||||
|
|
1
trunk/src/app/srs_app_st.cpp
Normal file → Executable file
1
trunk/src/app/srs_app_st.cpp
Normal file → Executable file
|
@ -237,6 +237,7 @@ void srs_close_stfd(st_netfd_t& stfd)
|
||||||
// we must ensure the close is ok.
|
// we must ensure the close is ok.
|
||||||
int err = st_netfd_close(stfd);
|
int err = st_netfd_close(stfd);
|
||||||
srs_assert(err != -1);
|
srs_assert(err != -1);
|
||||||
|
stfd = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue