Fix osp_server unregister issue
[platform/core/connectivity/bluetooth-frwk.git] / bt-service-adaptation / services / rfcomm / bt-service-rfcomm.c
index a8ff590..7311d40 100644 (file)
@@ -340,6 +340,9 @@ void _bt_rfcomm_server_check_termination(const char *name)
                                                conn_info->client_fd);
                }
        }
+
+       /* Cleanup osp server */
+       _bt_unregister_osp_server_in_agent_by_sender(name);
 }
 
 static void __bt_free_server_conn(bt_rfcomm_conn_info_t *conn_info)