aboutsummaryrefslogtreecommitdiff
path: root/src/rpop3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpop3.c')
-rw-r--r--src/rpop3.c4
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;
}