[Commits] nntp-thread.c 1.1.2.23 1.1.2.24
colin at claws-mail.org
colin at claws-mail.org
Wed Nov 28 12:11:42 CET 2012
Update of /home/claws-mail/claws/src/etpan
In directory srv:/tmp/cvs-serv24753/src/etpan
Modified Files:
Tag: gtk2
nntp-thread.c
Log Message:
2012-11-28 [colin] 3.9.0cvs28
* src/mainwindow.c
* src/news.c
* src/news.h
* src/etpan/nntp-thread.c
Disconnect NNTP accounts too when switching offline
Index: nntp-thread.c
===================================================================
RCS file: /home/claws-mail/claws/src/etpan/Attic/nntp-thread.c,v
retrieving revision 1.1.2.23
retrieving revision 1.1.2.24
diff -u -d -r1.1.2.23 -r1.1.2.24
--- nntp-thread.c 23 Nov 2012 19:29:16 -0000 1.1.2.23
+++ nntp-thread.c 28 Nov 2012 11:11:40 -0000 1.1.2.24
@@ -46,6 +46,8 @@
#include "ssl_certificate.h"
#include "socket.h"
#include "remotefolder.h"
+#include "main.h"
+#include "account.h"
#define DISABLE_LOG_DURING_LOGIN
@@ -158,6 +160,7 @@
void nntp_main_done(gboolean have_connectivity)
{
+ nntp_disconnect_all(have_connectivity);
etpan_thread_manager_stop(thread_manager);
#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
return;
@@ -968,6 +971,11 @@
return result.error;
}
+void nntp_main_set_timeout(int sec)
+{
+ mailstream_network_delay.tv_sec = sec;
+ mailstream_network_delay.tv_usec = 0;
+}
#else
More information about the Commits
mailing list