[evolution-ews] Fixed issue with medium attachments ~4MB causing timeout by sending notify_object_created before att
- From: Shiran Stan-Meleh <sstanmel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Fixed issue with medium attachments ~4MB causing timeout by sending notify_object_created before att
- Date: Sun, 21 Aug 2011 13:09:47 +0000 (UTC)
commit f98f7f6295b88c9f8c6e974ff628c154dff5f613
Author: Shiran Stan-Meleh <shiran stan-meleh intel com>
Date: Sun Aug 21 16:05:47 2011 +0300
Fixed issue with medium attachments ~4MB causing timeout
by sending notify_object_created before attachment is added.
notify_object_modified is sent after attachment is done syncing with the server
src/calendar/e-cal-backend-ews.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index 502489a..eb5b7af 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -1301,7 +1301,6 @@ ews_create_attachments_cb(GObject *object, GAsyncResult *res, gpointer user_data
icalcomponent *icalcomp = e_cal_component_get_icalcomponent (create_data->comp);
e_cal_backend_ews_modify_object ((ECalBackend *) create_data->cbews, create_data->cal, NULL, icalcomponent_as_ical_string (icalcomp), CALOBJ_MOD_ALL);
}
- e_data_cal_notify_object_created (create_data->cal, create_data->context, error, comp_uid, e_cal_component_get_as_string(create_data->comp));
} else if (create_data->cb_type == 2) {
const char *send_meeting_invitations;
EwsModifyData* modify_data;
@@ -1444,8 +1443,8 @@ ews_create_object_cb(GObject *object, GAsyncResult *res, gpointer user_data)
e_cal_backend_notify_object_created (E_CAL_BACKEND(create_data->cbews), create_data->context);
e_cal_component_get_uid(create_data->comp, &comp_uid);
- if (n_attach == 0)
- e_data_cal_notify_object_created (create_data->cal, create_data->context, error, comp_uid, e_cal_component_get_as_string(create_data->comp));
+
+ e_data_cal_notify_object_created (create_data->cal, create_data->context, error, comp_uid, e_cal_component_get_as_string(create_data->comp));
/* place new component in our cache */
PRIV_LOCK (priv);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]