From 42e025445793d7d8570dcdb266cf64f849800c60 Mon Sep 17 00:00:00 2001 From: Gergely POLONKAI Date: Fri, 23 Mar 2012 14:34:49 +0100 Subject: [PATCH] Refactored wmud_client_close() Removed the error checking TODO comment from wmud_client_close() as g_socket_close() doesn't necessarily needs to be checked for errors. Signed-off-by: Gergely POLONKAI --- src/networking.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/networking.c b/src/networking.c index 81f0e9d..85944af 100644 --- a/src/networking.c +++ b/src/networking.c @@ -26,15 +26,11 @@ void wmud_client_interpret_newplayer_mailconfirm(wmudClient *client_data); void wmud_client_close(wmudClient *client, gboolean send_goodbye) { - GError *err = NULL; if (send_goodbye) - { wmud_client_send(client, "\r\nHave a nice real-world day!\r\n\r\n"); - } g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "Connection closed."); - /* TODO: Error checking */ - g_socket_close(client->socket, &err); + g_socket_close(client->socket, NULL); clients = g_slist_remove(clients, client); wmud_player_free(&(client->player)); if (client->buffer)