Ignore failed event when incoming socket is unavailable 51/10751/1
authorWonkyu Kwon <wonkyu.kwon@samsung.com>
Fri, 11 Oct 2013 02:07:10 +0000 (11:07 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Fri, 11 Oct 2013 02:07:10 +0000 (11:07 +0900)
Change-Id: I3a14571a80c4adfc47fe1151511eca778e233e12

daemon/net_nfc_server_process_snep.c

index c6c525f..8ffb057 100644 (file)
@@ -1287,8 +1287,7 @@ static void _net_nfc_server_snep_incoming_cb(net_nfc_error_e result,
                return;
        }
 
-       NFC_DBG("_net_nfc_server_snep_incoming_cb, incoming socket [%x], result [%d]",
-                       socket, result);
+       NFC_DBG("snep incoming socket [%x], result [%d]", socket, result);
 
        if (result != NET_NFC_OK)
        {
@@ -1318,7 +1317,6 @@ static void _net_nfc_server_snep_incoming_cb(net_nfc_error_e result,
                        socket,
                        _net_nfc_server_snep_incomming_socket_error_cb,
                        accept_context);
-
        if (result != NET_NFC_OK)
        {
                NFC_ERR("net_nfc_server_llcp_simple_accept failed, [%d]",
@@ -1337,15 +1335,6 @@ ERROR :
        {
                _net_nfc_util_free_mem(accept_context);
        }
-
-       if (context->cb != NULL)
-       {
-               context->cb((net_nfc_snep_handle_h)context,
-                               result,
-                               context->type,
-                               NULL,
-                               context->user_param);
-       }
 }
 
 net_nfc_error_e net_nfc_server_snep_server(    net_nfc_target_handle_s *handle,