From: Hwankyu Jhun Date: Mon, 13 Sep 2021 07:14:05 +0000 (+0900) Subject: Fix Disconnect() method of Port X-Git-Tag: accepted/tizen/unified/20210915.001806~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F92%2F263892%2F1;p=platform%2Fcore%2Fappfw%2Frpc-port.git Fix Disconnect() method of Port Before closing the file descriptor, the method calls IgnoreIOEvent() to release the GSource. Change-Id: I8e7c91de98e1db838def468564ca98117d1985eb Signed-off-by: Hwankyu Jhun --- diff --git a/src/port-internal.cc b/src/port-internal.cc index 4cceada..582e6a5 100644 --- a/src/port-internal.cc +++ b/src/port-internal.cc @@ -80,6 +80,8 @@ Port::~Port() { } void Port::Disconnect() { + IgnoreIOEvent(); + if (fd_ > 0) { _W("Close fd(%d)", fd_); close(fd_);