From bfcdfa543f91ccaa6544534dfb0ca7f4fc1b9684 Mon Sep 17 00:00:00 2001 From: "ch79.cho" Date: Thu, 23 Feb 2017 20:09:14 +0900 Subject: [PATCH] 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 --- service/notification/src/provider/NSProviderInterface.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.7.4