[IoTConnectivityClient][Non-ACR] Deinitialize the client manager 53/214553/2
authorDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 24 Sep 2019 04:00:37 +0000 (13:00 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 24 Sep 2019 04:07:38 +0000 (13:07 +0900)
Change-Id: Ie0288341ccfe2adc8a8f9a5fc590c925dd083971

tct-suite-vs/Tizen.IoTConnectivityClient.Tests/testcase/support/TestHelper.cs

index 2bf689d..a5912b0 100755 (executable)
@@ -113,12 +113,18 @@ namespace Tizen.IoTConnectivityClient.Tests
             {
                 Log.Info(LOGTAG, "Initialized...");
                 IoTConnectivityClientManager.Initialize(datPathClient);
+                InitializedFlag = true;
             }
         }
 
         internal static void Deinitialize()
         {
-            // Do not deinitialize for one process
+            if (InitializedFlag)
+            {
+                Log.Info(LOGTAG, "Deinitialized...");
+                IoTConnectivityClientManager.Deinitialize();
+                InitializedFlag = false;
+            }
         }
         internal static async Task TryLaunchServerApp(string mode)
         {