diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2008-04-09 09:02:34 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2008-04-09 09:02:34 +0000 |
commit | 62406eb470f36addb2ccdca581d9a58ef6c3cbb8 (patch) | |
tree | c20c896aa73c247df8523b9167cafefbe6522981 /libsylph | |
parent | 520c0a9f8a3fc4c27da5a30a416f414e75c57271 (diff) |
always display error dialog when connection to SMTP server failed.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1973 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsylph/session.c b/libsylph/session.c index 1d8bc0d4..01962b11 100644 --- a/libsylph/session.c +++ b/libsylph/session.c @@ -127,7 +127,7 @@ gint session_connect(Session *session, const gchar *server, gushort port) session); if (session->conn_id < 0) { g_warning("can't connect to server."); - session_close(session); + session->state = SESSION_ERROR; return -1; } @@ -141,7 +141,7 @@ gint session_connect(Session *session, const gchar *server, gushort port) sock = sock_connect(server, port); if (sock == NULL) { g_warning("can't connect to server."); - session_close(session); + session->state = SESSION_ERROR; return -1; } |