diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-11-04 04:52:18 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-11-04 04:52:18 +0000 |
commit | b7c1d2f196fc3557202e41a4abfe117910947400 (patch) | |
tree | 0e0fed153e6db63792205e6f269421180c2e1512 /libsylph/imap.c | |
parent | 4d5df10a3e521bbb3918d5844e8521af901b6fdf (diff) |
fixed a bug that prohibited query search on IMAP folders. Don't call gtk_main_iteration() from non-main threads.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2330 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/imap.c')
-rw-r--r-- | libsylph/imap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libsylph/imap.c b/libsylph/imap.c index 16d13cc1..d39814c0 100644 --- a/libsylph/imap.c +++ b/libsylph/imap.c @@ -4244,6 +4244,7 @@ static gint imap_cmd_ok_real(IMAPSession *session, GPtrArray *argbuf) str = g_string_sized_new(256); + //g_usleep(800000); while ((ok = imap_cmd_gen_recv(session, &buf)) == IMAP_SUCCESS) { g_string_append(str, buf); @@ -4817,11 +4818,11 @@ static void imap_thread_run_proxy(gpointer push_data, gpointer data) { IMAPRealSession *real = (IMAPRealSession *)data; - g_print("imap_thread_run_proxy (%p): calling thread_func\n", g_thread_self()); + debug_print("imap_thread_run_proxy (%p): calling thread_func\n", g_thread_self()); real->retval = real->thread_func(IMAP_SESSION(real), real->thread_data); g_atomic_int_set(&real->flag, 1); - g_print("imap_thread_run_proxy (%p): thread_func done\n", g_thread_self()); g_main_context_wakeup(NULL); + debug_print("imap_thread_run_proxy (%p): thread_func done\n", g_thread_self()); } static gint imap_thread_run(IMAPSession *session, IMAPThreadFunc func, |