From 46fa11af8a408ea2f0dd531f716d40f3abb0dbc9 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Mon, 13 Sep 2021 16:14:05 +0900 Subject: [PATCH] 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 --- src/port-internal.cc | 2 ++ 1 file changed, 2 insertions(+) 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_); -- 2.7.4