summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjusung <jusung07.son@samsung.com>2022-01-20 09:58:42 +0900
committerHwanKyu Jhun <h.jhun@samsung.com>2022-01-23 23:59:37 +0000
commit82c3adc1b3e7bc1088eae66050ce537cdada0b18 (patch)
tree3208b926b73f538705d3860cc99dc08842425981
parent6a18df26b04cd848328f3626e1d1774eb1ff9eef (diff)
downloadmessage-port-82c3adc1b3e7bc1088eae66050ce537cdada0b18.tar.gz
message-port-82c3adc1b3e7bc1088eae66050ce537cdada0b18.tar.bz2
message-port-82c3adc1b3e7bc1088eae66050ce537cdada0b18.zip
Change the exception handling logic
There is no need to disconnect the socket when MESSAGE_PORT_ERROR_MAX_EXCEEDED error occurs. Change-Id: If34309c70a4549f5a655e1e6dc24cf87bfd6e874 Signed-off-by: jusung <jusung07.son@samsung.com>
-rw-r--r--src/message_port_local.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/message_port_local.c b/src/message_port_local.c
index c153444..f3b8096 100644
--- a/src/message_port_local.c
+++ b/src/message_port_local.c
@@ -1136,7 +1136,8 @@ out:
if (fd_list)
g_object_unref(fd_list);
- if (ret != MESSAGE_PORT_ERROR_NONE) {
+ if (ret != MESSAGE_PORT_ERROR_NONE
+ && ret != MESSAGE_PORT_ERROR_MAX_EXCEEDED) {
__key_info = NULL;
__create_port_key_info(port_info, &__key_info);