From 60c5c7170f5642a78a4fd2092e4e78caae8475d6 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 24 Jan 2013 12:02:11 -0500 Subject: E_CLIENT_ERROR_BUSY is no longer used. --- e-util/e-client-utils.c | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'e-util/e-client-utils.c') diff --git a/e-util/e-client-utils.c b/e-util/e-client-utils.c index ed0688b637..04efbe8177 100644 --- a/e-util/e-client-utils.c +++ b/e-util/e-client-utils.c @@ -246,7 +246,6 @@ client_utils_open_new_done (EClientUtilsAsyncOpData *async_data) e_client_retrieve_capabilities (async_data->client, async_data->cancellable, client_utils_capabilities_retrieved_cb, async_data); } -static gboolean client_utils_retry_open_timeout_cb (gpointer user_data); static void client_utils_opened_cb (EClient *client, const GError *error, EClientUtilsAsyncOpData *async_data); static void @@ -255,11 +254,7 @@ finish_or_retry_open (EClientUtilsAsyncOpData *async_data, { g_return_if_fail (async_data != NULL); - if (error && g_error_matches (error, E_CLIENT_ERROR, E_CLIENT_ERROR_BUSY)) { - /* postpone for 1/2 of a second, backend is busy now */ - async_data->open_finished = FALSE; - async_data->retry_open_id = g_timeout_add (500, client_utils_retry_open_timeout_cb, async_data); - } else if (error) { + if (error) { return_async_error (error, async_data->callback, async_data->user_data, async_data->source, e_client_utils_open_new); free_client_utils_async_op_data (async_data); } else { @@ -325,25 +320,6 @@ client_utils_open_new_async_cb (GObject *source_object, /* wait for 'opened' signal, which is received in client_utils_opened_cb */ } -static gboolean -client_utils_retry_open_timeout_cb (gpointer user_data) -{ - EClientUtilsAsyncOpData *async_data = user_data; - - g_return_val_if_fail (async_data != NULL, FALSE); - - g_signal_handlers_disconnect_matched (async_data->cancellable, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, async_data); - - /* reconnect to the signal */ - g_signal_connect (async_data->client, "opened", G_CALLBACK (client_utils_opened_cb), async_data); - - e_client_open (async_data->client, async_data->only_if_exists, async_data->cancellable, client_utils_open_new_async_cb, async_data); - - async_data->retry_open_id = 0; - - return FALSE; -} - /** * e_client_utils_open_new: * @source: an #ESource to be opened -- cgit v1.2.3