mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
miracle-dispd: fix session leaking issue
Change-Id: I1ececf598fedf601edfd7c7208ffce72a750f8cd
This commit is contained in:
parent
011f2e0b98
commit
4a39f08093
1 changed files with 2 additions and 2 deletions
|
@ -229,6 +229,8 @@ int wfd_session_destroy(struct wfd_session *s)
|
||||||
|
|
||||||
wfd_session_set_state(s, WFD_SESSION_STATE_DESTROYED);
|
wfd_session_set_state(s, WFD_SESSION_STATE_DESTROYED);
|
||||||
|
|
||||||
|
wfd_fn_out_session_ended(s);
|
||||||
|
|
||||||
if(session_vtbl[s->dir].destroy) {
|
if(session_vtbl[s->dir].destroy) {
|
||||||
(*session_vtbl[s->dir].destroy)(s);
|
(*session_vtbl[s->dir].destroy)(s);
|
||||||
}
|
}
|
||||||
|
@ -285,8 +287,6 @@ int wfd_session_destroy(struct wfd_session *s)
|
||||||
s->rtp_ports[1] = 0;
|
s->rtp_ports[1] = 0;
|
||||||
s->last_request = RTSP_M_UNKNOWN;
|
s->last_request = RTSP_M_UNKNOWN;
|
||||||
|
|
||||||
wfd_fn_out_session_ended(s);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue