From 5e253e844279a30664a794f83ad863bcadfd6483 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Fri, 22 Jan 2010 16:04:36 +0100 Subject: [PATCH] Fix compile error. --- src/tools/adcclient.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/tools/adcclient.c b/src/tools/adcclient.c index e6c4a0b..93bb666 100644 --- a/src/tools/adcclient.c +++ b/src/tools/adcclient.c @@ -75,19 +75,13 @@ static void event_callback(struct net_connection* con, int events, void *arg) { struct ADC_client* client = (struct ADC_client*) net_con_get_ptr(con); - if (events == NET_EVENT_SOCKERROR || events == NET_EVENT_CLOSED) - { - printf("NET_EVENT_SOCKERROR || NET_EVENT_CLOSED\n"); - client->callback(client, ADC_CLIENT_DISCONNECTED, 0); - return; - } - if (events == NET_EVENT_TIMEOUT) { if (client->state == ps_conn) { client->callback(client, ADC_CLIENT_DISCONNECTED, 0); } + return; } if (events & NET_EVENT_READ)