https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/666
(cherry-picked from
bd25a20961dc89dd4c7fedb5a3f4e881ddb53b0a)
Change-Id: Id9259093a010533ec20fc4061f2283d7d69d016a
Signed-off-by: Kush <kush.agrawal@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
if (out)
{
if ((strcmp(out->devAddr.addr, devAddr->addr) == 0)
- && out->devAddr.port == devAddr->port)
+ && (out->devAddr.port == devAddr->port || OC_ADAPTER_GATT_BTLE == devAddr->adapter))
{
OIC_LOG_V(INFO, TAG, "deleting observer id %u with %s:%u",
out->observeId, out->devAddr.addr, out->devAddr.port);