Commit fe7e27f9 authored by Regis Merlino's avatar Regis Merlino

[Server] Fix a crash case when the server stops

Signed-off-by: default avatarRegis Merlino <regis.merlino@intel.com>
parent efa7cb33
......@@ -580,10 +580,10 @@ static void prv_control_point_initialize(const dleyna_connector_t *connector,
static void prv_control_point_stop_service(void)
{
dlr_upnp_unsubscribe(g_context.upnp);
if (g_context.upnp)
if (g_context.upnp) {
dlr_upnp_unsubscribe(g_context.upnp);
dlr_upnp_delete(g_context.upnp);
}
if (g_context.connection) {
if (g_context.dlr_id)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment