diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-12-14 03:31:40 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-12-14 03:31:40 +0000 |
commit | 58205d53f66d5867666c8f855d5723cb72afb63f (patch) | |
tree | 12243262180eb157c8956dfa9d9876e980d734db | |
parent | 4ce9864ba963d4a5e1dae641a3f510908debac60 (diff) | |
download | fetchmail-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.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 { |