[IOT-3022] Session delete fix 07/25407/2
authorAleksey Volkov <a.volkov@samsung.com>
Wed, 23 May 2018 14:04:41 +0000 (17:04 +0300)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Wed, 30 May 2018 15:44:50 +0000 (15:44 +0000)
Do not delete session in case if token refresh thread stops

Change-Id: I44bd904f13cdd7b44e34e47a69ce403248e550b9
Signed-off-by: Aleksey Volkov <a.volkov@samsung.com>
resource/csdk/security/provisioning/src/cloud/auth.c

index af4eaee..2d11ed3 100644 (file)
@@ -834,11 +834,6 @@ static void *CloudTokenRefresh(void *data)
         }
     }
 
-    if (cloud->session)
-    {
-        SessionFree(cloud->session);
-        cloud->session = NULL;
-    }
 exit:
     OIC_LOG_V(DEBUG, TAG, "%s: OUT", __func__);
     return NULL;