X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fnotification%2Fsrc%2Fconsumer%2FNSConsumerNetworkEventListener.c;h=d48d89732af66b815735abd28f7598f5551be7ca;hb=3c093548382bb2542c87a67e6e5fa32552c29cb3;hp=8e9e1e552d8d6edbafd3756562f69c1ae3f1f74d;hpb=edcfc3d2329da7b914771c0dcff5f42c9b74fd93;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/notification/src/consumer/NSConsumerNetworkEventListener.c b/service/notification/src/consumer/NSConsumerNetworkEventListener.c index 8e9e1e5..d48d897 100644 --- a/service/notification/src/consumer/NSConsumerNetworkEventListener.c +++ b/service/notification/src/consumer/NSConsumerNetworkEventListener.c @@ -30,7 +30,7 @@ #include "NSConsumerDiscovery.h" #include "NSConsumerNetworkEventListener.h" -#define NS_PRESENCE_SUBSCRIBE_QUERY "/oic/ad?rt=oic.wk.notification" +#define NS_PRESENCE_SUBSCRIBE_QUERY "/oic/ad?rt=x.org.iotivity.notification" void NSConnectionStateListener(const CAEndpoint_t * info, bool isConnected); @@ -71,7 +71,7 @@ NSResult NSConsumerListenerInit() void NSConsumerListenerTermiate() { - CARegisterNetworkMonitorHandler(NULL, NULL); + CAUnregisterNetworkMonitorHandler(NSAdapterStateListener, NSConnectionStateListener); OCCancel(*getPresenceHandle(), NS_QOS, NULL, 0); } @@ -80,7 +80,7 @@ void NSConnectionStateListener(const CAEndpoint_t * info, bool connected) NS_VERIFY_NOT_NULL_V(info); NS_LOG_V(DEBUG, "adapter : %d", info->adapter); - NS_LOG_V(DEBUG, "remote_address : %s:%d", info->addr, info->port); + NS_LOG_V(INFO_PRIVATE, "remote_address : %s:%d", info->addr, info->port); NS_LOG_V(DEBUG, "isConnect : %d", connected); NSTaskType type = TASK_EVENT_CONNECTED;