X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fnotification%2Fsrc%2Fconsumer%2FNSConsumerNetworkEventListener.c;h=078b6a51873e129e1d6de48008ac55917025e731;hb=b6b8f525aa7941efeec63e668013ff6f2b6fe052;hp=21881b10be6eb2bbcfe1e11889ea43b6d5176e4b;hpb=a664cd8c8431ef1ec36bb04262c6570cb7eeb0a4;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/notification/src/consumer/NSConsumerNetworkEventListener.c b/service/notification/src/consumer/NSConsumerNetworkEventListener.c index 21881b1..078b6a5 100644 --- a/service/notification/src/consumer/NSConsumerNetworkEventListener.c +++ b/service/notification/src/consumer/NSConsumerNetworkEventListener.c @@ -84,6 +84,14 @@ void NSConnectionStateListener(const CAEndpoint_t * info, bool connected) NS_LOG_V(INFO_PRIVATE, "remote_address : %s:%d", info->addr, info->port); NS_LOG_V(DEBUG, "isConnect : %d", connected); +#ifdef DISABLE_AUTO_TCP_NSPROVIDER_DISCOVERY + if (info->adapter == CA_ADAPTER_TCP) + { + NS_LOG(DEBUG, "Ignoring the TCP event."); + return; + } +#endif + NSTaskType type = TASK_EVENT_CONNECTED; OCDevAddr * addr = NULL; if (connected)