Change the exception handling logic
authorjusung <jusung07.son@samsung.com>
Thu, 20 Jan 2022 00:58:42 +0000 (09:58 +0900)
committerjusung <jusung07.son@samsung.com>
Thu, 31 Mar 2022 06:43:21 +0000 (15:43 +0900)
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>
src/message_port_local.c

index c1534441c8617ba462c727f365a64bfe5fadb047..f3b8096756a8a36d4acc477f40befae54f78f2ae 100644 (file)
@@ -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);