From: Inkyun Kil Date: Fri, 22 Sep 2017 02:03:24 +0000 (+0900) Subject: Fix check isRunning for CertificateNotMatch and wrong description X-Git-Tag: preview1-00237^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=73037d4142b2856a5224070debc6ebeffc024221;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Fix check isRunning for CertificateNotMatch and wrong description Change-Id: Idfbcad745ffb217779f56b77f55d301938fdc44d Signed-off-by: Inkyun Kil --- diff --git a/src/Tizen.Applications.MessagePort/Tizen.Applications.Messages/RemotePort.cs b/src/Tizen.Applications.MessagePort/Tizen.Applications.Messages/RemotePort.cs index 5e9f541..561948d 100755 --- a/src/Tizen.Applications.MessagePort/Tizen.Applications.Messages/RemotePort.cs +++ b/src/Tizen.Applications.MessagePort/Tizen.Applications.Messages/RemotePort.cs @@ -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 /// /// 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) /// {