diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2008-09-19 07:04:01 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2008-09-19 07:04:01 +0000 |
commit | 226b7833e853fc2b65900f6d8c9cb0993e3af371 (patch) | |
tree | c0dba3d8bb8285481aab70f88b3c1bea221b9de2 /libsylph | |
parent | 2a5d526422c62ec5da7102b5626f3c0992b508c2 (diff) |
remote mailbox: added stop button which stops retrieving of headers.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2036 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/socket.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libsylph/socket.c b/libsylph/socket.c index 9efec203..55ae3cfd 100644 --- a/libsylph/socket.c +++ b/libsylph/socket.c @@ -922,7 +922,7 @@ static gboolean sock_connect_async_cb(GIOChannel *source, conn_data->channel = NULL; g_io_channel_unref(source); - if (condition & (G_IO_ERR | G_IO_HUP)) { + if (condition & (G_IO_ERR | G_IO_HUP | G_IO_NVAL)) { debug_print("sock_connect_async_cb: condition = %d\n", condition); fd_close(fd); @@ -939,6 +939,7 @@ static gboolean sock_connect_async_cb(GIOChannel *source, } if (val != 0) { + debug_print("getsockopt(SOL_SOCKET, SO_ERROR) returned error\n"); fd_close(fd); sock_connect_address_list_async(conn_data); return FALSE; @@ -1086,9 +1087,9 @@ static gint sock_connect_address_list_async(SockConnectData *conn_data) conn_data->cur_addr = conn_data->cur_addr->next; conn_data->channel = g_io_channel_unix_new(sock); - conn_data->io_tag = g_io_add_watch(conn_data->channel, - G_IO_OUT | G_IO_ERR | G_IO_HUP, - sock_connect_async_cb, conn_data); + conn_data->io_tag = g_io_add_watch + (conn_data->channel, G_IO_OUT | G_IO_ERR | G_IO_HUP | G_IO_NVAL, + sock_connect_async_cb, conn_data); return 0; } |