Clear the GError after g_socket_connect tells us that the connection is pending. If we don't do this, glib complains when we try to reuse the non-NULL GError variable a little below.