From: ch79.cho Date: Thu, 23 Feb 2017 11:09:14 +0000 (+0900) Subject: Unregister CA Network Monitor X-Git-Tag: 1.3.0~571 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bfcdfa543f91ccaa6544534dfb0ca7f4fc1b9684;p=platform%2Fupstream%2Fiotivity.git Unregister CA Network Monitor unregisted a listener to monitor the network status from CA. The listener has not been unregisted when stopping noti-provider. Change-Id: I236f11db64d8dd02f6dff957719eef912e4b6f5b Signed-off-by: ch79.cho Reviewed-on: https://gerrit.iotivity.org/gerrit/17467 Tested-by: jenkins-iotivity Reviewed-by: Uze Choi --- diff --git a/service/notification/src/provider/NSProviderInterface.c b/service/notification/src/provider/NSProviderInterface.c index 74015c0..116a5f1 100644 --- a/service/notification/src/provider/NSProviderInterface.c +++ b/service/notification/src/provider/NSProviderInterface.c @@ -124,6 +124,8 @@ NSResult NSStopProvider() if (initProvider) { + CAUnregisterNetworkMonitorHandler((CAAdapterStateChangedCB)NSProviderAdapterStateListener, + (CAConnectionStateChangedCB)NSProviderConnectionStateListener); NSPushQueue(DISCOVERY_SCHEDULER, TASK_STOP_PRESENCE, NULL); NSRegisterSubscribeRequestCb((NSSubscribeRequestCallback)NULL); NSRegisterSyncCb((NSProviderSyncInfoCallback)NULL);