aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-12-14 03:31:40 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-12-14 03:31:40 +0000
commit58205d53f66d5867666c8f855d5723cb72afb63f (patch)
tree12243262180eb157c8956dfa9d9876e980d734db
parent4ce9864ba963d4a5e1dae641a3f510908debac60 (diff)
downloadfetchmail-58205d53f66d5867666c8f855d5723cb72afb63f.tar.gz
fetchmail-58205d53f66d5867666c8f855d5723cb72afb63f.tar.bz2
fetchmail-58205d53f66d5867666c8f855d5723cb72afb63f.zip
Sunil Shetye's disconect-reconnect fix.
svn path=/trunk/; revision=3555
-rw-r--r--driver.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/driver.c b/driver.c
index 666c4fb8..ec461410 100644
--- a/driver.c
+++ b/driver.c
@@ -665,7 +665,7 @@ static int fetch_messages(int mailserver_socket, struct query *ctl,
delete_str(&ctl->newsaved, num);
#endif /* POP3_ENABLE */
}
- else if (outlevel > O_SILENT)
+ else if (outlevel > O_SILENT)
report_complete(stdout, GT_(" not flushed\n"));
/* perhaps this as many as we're ready to handle */
@@ -788,10 +788,14 @@ const int maxfetch; /* maximum number of messages to fetch */
/* try to clean up all streams */
release_sink(ctl);
- if (ctl->smtp_socket != -1)
+ if (ctl->smtp_socket != -1) {
cleanupSockClose(ctl->smtp_socket);
- if (mailserver_socket != -1)
+ ctl->smtp_socket = -1;
+ }
+ if (mailserver_socket != -1) {
cleanupSockClose(mailserver_socket);
+ mailserver_socket = -1;
+ }
}
else
{