Fixed repeated network select/unselect causing no messages
authorjw1103.kim <jw1103.kim@samsung.com>
Tue, 12 May 2015 08:28:18 +0000 (17:28 +0900)
committerErich Keane <erich.keane@intel.com>
Tue, 12 May 2015 17:41:59 +0000 (17:41 +0000)
This patch fixes Jira issue IOT-453.  Previously, selecting
and unselecting the network repeatedly would put the ipserver
into a state where it would no longer propogate messages.

Change-Id: I6698e72782682b3523404137a2cef5ee410586bb
Signed-off-by: jw1103.kim <jw1103.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/964
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/connectivity/src/ip_adapter/caipserver.c

index b7b820b..c2a4ba6 100644 (file)
@@ -447,6 +447,7 @@ static CAResult_t CAIPStartPacketReceiverHandler()
 
     if (1 == listLength) //Its first time.
     {
+        g_packetHandlerStopFlag = false;
         if (CA_STATUS_OK != ca_thread_pool_add_task(g_adapterEthServerContext->threadPool,
                                                    CAReceiveHandler, NULL ))
         {