[WiFi] Use cloned apHandle (#2155)
authorchleun-moon <32117100+chleun-moon@users.noreply.github.com>
Tue, 3 Nov 2020 01:01:48 +0000 (10:01 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 4 Nov 2020 08:17:17 +0000 (17:17 +0900)
src/Tizen.Network.WiFi/Tizen.Network.WiFi/ConnectionStateChangedEventArgs.cs

index 869a0ea..ee8afe0 100755 (executable)
@@ -30,7 +30,9 @@ namespace Tizen.Network.WiFi
         internal ConnectionStateChangedEventArgs(WiFiConnectionState s, IntPtr apHandle)
         {
             _state = s;
         internal ConnectionStateChangedEventArgs(WiFiConnectionState s, IntPtr apHandle)
         {
             _state = s;
-            _ap = new WiFiAP(apHandle);
+            IntPtr clonedHandle;
+            Interop.WiFi.AP.Clone(out clonedHandle, apHandle);
+            _ap = new WiFiAP(clonedHandle);
         }
 
         /// <summary>
         }
 
         /// <summary>