diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-09-17 07:26:17 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-09-17 07:26:17 +0000 |
commit | 71f191b2a609e291a3afcf726ab8aacab572637b (patch) | |
tree | fa744ee9944df82548c6afb33451455c4ce7c61a /src/rpop3.c | |
parent | 24c2edfeacce97b6e4c3783c53cbd2532088af95 (diff) |
introduced multi-threading.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2255 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/rpop3.c')
-rw-r--r-- | src/rpop3.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rpop3.c b/src/rpop3.c index 347f1a83..aee98956 100644 --- a/src/rpop3.c +++ b/src/rpop3.c @@ -608,6 +608,8 @@ static void rpop3_clear_list(void) static gboolean rpop3_ping_cb(gpointer data) { + gdk_threads_enter(); + if (rpop3_window.ping_tag > 0) { g_source_remove(rpop3_window.ping_tag); rpop3_window.ping_tag = 0; @@ -615,6 +617,8 @@ static gboolean rpop3_ping_cb(gpointer data) if (rpop3_window.session->state == POP3_IDLE) rpop3_noop_send(rpop3_window.session); + gdk_threads_leave(); + return FALSE; } |