From 73037d4142b2856a5224070debc6ebeffc024221 Mon Sep 17 00:00:00 2001 From: Inkyun Kil Date: Fri, 22 Sep 2017 11:03:24 +0900 Subject: [PATCH] Fix check isRunning for CertificateNotMatch and wrong description Change-Id: Idfbcad745ffb217779f56b77f55d301938fdc44d Signed-off-by: Inkyun Kil --- .../Tizen.Applications.Messages/RemotePort.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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) /// { -- 2.7.4