diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-06-07 09:07:20 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-06-07 09:07:20 +0000 |
commit | 6d38a4176dfa949b59eb04299125018ed955f968 (patch) | |
tree | 5bd68daefb1b604213a1f1d798a0c0e658bf7bc2 /libsylph | |
parent | 328978710b7cc634f06f778c3873abdcf39e8969 (diff) |
win32: abort socket polling if not connected.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1752 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/session.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libsylph/session.c b/libsylph/session.c index 9e0006d3..433ee539 100644 --- a/libsylph/session.c +++ b/libsylph/session.c @@ -265,6 +265,9 @@ static gboolean session_ping_cb(gpointer data) Session *session = SESSION(data); SockInfo *sock = session->sock; + if (!session_is_connected(session)) + return FALSE; + if (session->io_tag > 0 && sock && sock->callback) { GTimeVal tv_cur, tv_result; |