aboutsummaryrefslogtreecommitdiff
path: root/libsylph/imap.c
diff options
context:
space:
mode:
Diffstat (limited to 'libsylph/imap.c')
-rw-r--r--libsylph/imap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libsylph/imap.c b/libsylph/imap.c
index 1f48253e..11694f9b 100644
--- a/libsylph/imap.c
+++ b/libsylph/imap.c
@@ -2930,6 +2930,9 @@ static SockInfo *imap_open(const gchar *server, gushort port,
SockInfo *sock = NULL;
const gchar *server_;
gushort port_;
+#if USE_THREADS
+ gint conn_id;
+#endif
if (socks_info) {
server_ = socks_info->proxy_host;
@@ -2940,8 +2943,6 @@ static SockInfo *imap_open(const gchar *server, gushort port,
}
#if USE_THREADS
- gint conn_id;
-
if ((conn_id = sock_connect_async_thread(server_, port_)) < 0 ||
sock_connect_async_thread_wait(conn_id, &sock) < 0) {
log_warning(_("Can't connect to IMAP4 server: %s:%d\n"),