summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintae, jeon <intae.jeon@samsung.com>2016-11-30 09:50:28 +0900
committerintae jeon <intae.jeon@samsung.com>2016-12-01 15:24:11 -0800
commit3c899c715ff93b37fed2e25d3d67f1310240c1ab (patch)
tree4da1bbe8043ddedd7969139b1bb82c3630435e5b
parent8bac706046f1d8f02aaab633ad22c3e5e1b71896 (diff)
downloademail-service-3c899c715ff93b37fed2e25d3d67f1310240c1ab.tar.gz
email-service-3c899c715ff93b37fed2e25d3d67f1310240c1ab.tar.bz2
email-service-3c899c715ff93b37fed2e25d3d67f1310240c1ab.zip
cannot read draft mail because of error of sorting events with priority(TSAM_10281)
Change-Id: Ic5d5add678ff366a3c1719e5e9ab678bfdf2d452 Signed-off-by: intae, jeon <intae.jeon@samsung.com> (cherry picked from commit 4e45fc2774fab08603b2e0bfa15fb40a7bd6c8b5)
-rwxr-xr-xemail-core/email-core-event.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/email-core/email-core-event.c b/email-core/email-core-event.c
index 699443c..67bf84e 100755
--- a/email-core/email-core-event.c
+++ b/email-core/email-core-event.c
@@ -1694,7 +1694,8 @@ static void emcore_adjust_sync_mail_flag_event_priority()
// find sync flag event.
for (i = 0; i < q_length; i++) {
email_event_t *p = g_queue_peek_nth(g_event_que, i);
- if (p->type == EMAIL_EVENT_SYNC_FLAGS_FIELD_TO_SERVER) {
+ // working element is index = 0, except working element
+ if (p->type == EMAIL_EVENT_SYNC_FLAGS_FIELD_TO_SERVER && i > 0) {
sync_flag_event_list = g_list_append(sync_flag_event_list, p);
}
}