After multiple terminate initialization, CASendRequest API
is not working. because we didn't set the start flag with false
after stopping adapter. Both JIRA issues are related.
Change-Id: If855c4f689ce6979ae13591f2d4048113148d150
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Signed-off-by: Ashok Channa <ashok.channa@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3069
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
CAIPStopNetworkMonitor();
CAIPStopServer();
+ //Re-initializing the Globals to start them again
+ CAInitializeIPGlobals();
OIC_LOG(DEBUG, TAG, "OUT");
return CA_STATUS_OK;
{
OIC_LOG(DEBUG, TAG, "IN");
+ caglobals.ip.started = false;
caglobals.ip.terminate = true;
if (caglobals.ip.shutdownFds[1] != -1)
}
}
u_arraylist_destroy(caglobals.tcp.svrlist);
-
+ caglobals.tcp.svrlist = NULL;
ca_mutex_unlock(g_mutexObjectList);
OIC_LOG(DEBUG, TAG, "OUT");
caglobals.tcp.started = true;
+ g_threadCounts = CA_TCP_DEFAULT_THREAD_COUNTS;
+
return CA_STATUS_OK;
}
// set terminate flag
caglobals.tcp.terminate = true;
+ caglobals.tcp.started = false;
ca_cond_wait(g_condObjectList, g_mutexObjectList);