Fix check isRunning for CertificateNotMatch and wrong description 56/151756/1 preview1-00237
authorInkyun Kil <inkyun.kil@samsung.com>
Fri, 22 Sep 2017 02:03:24 +0000 (11:03 +0900)
committerInkyun Kil <inkyun.kil@samsung.com>
Fri, 22 Sep 2017 02:03:24 +0000 (11:03 +0900)
Change-Id: Idfbcad745ffb217779f56b77f55d301938fdc44d
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
src/Tizen.Applications.MessagePort/Tizen.Applications.Messages/RemotePort.cs

index 5e9f541..561948d 100755 (executable)
@@ -150,7 +150,12 @@ namespace Tizen.Applications.Messages
                 Interop.MessagePort.CheckTrustedRemotePort(_appId, _portName, out _isRunning) :
                 Interop.MessagePort.CheckRemotePort(_appId, _portName, out _isRunning);
 
-            if (ret != (int)MessagePortError.None)
+            if (ret == (int)MessagePortError.CertificateNotMatch)
+            {
+                /* Although Remote port is NotMatch, it is running */
+                _isRunning = true;
+            }
+            else if (ret != (int)MessagePortError.None)
             {
                 MessagePortErrorFactory.ThrowException(ret);
             }
@@ -167,7 +172,7 @@ namespace Tizen.Applications.Messages
         /// <code>
         /// Remote remotePort = new RemotePort("org.tizen.example", "SenderPort", true);
         /// remotePort.RemotePortStateChanged += RemotePortStateChangedCallback;
-        /// static void RemotePortStateChangedCallback(object sender, MessageReceivedEventArgs e)
+        /// static void RemotePortStateChangedCallback(object sender, RemotePortStateChangedEventArgs e)
         /// {
         ///     switch (e.Status)
         ///     {