[pan2/testing] jghjdfhgkjdh
- From: Heinrich MÃller <henmull src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2/testing] jghjdfhgkjdh
- Date: Fri, 9 Dec 2011 14:27:10 +0000 (UTC)
commit c96fbe52c684b7301b0a70b56de5506311933ca7
Author: Heinrich MÃller <henmull src gnome org>
Date: Fri Dec 9 12:39:06 2011 +0100
jghjdfhgkjdh
pan/tasks/nntp.cc | 12 +++++-------
pan/tasks/nntp.h | 2 +-
2 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/pan/tasks/nntp.cc b/pan/tasks/nntp.cc
index b8eff0f..2f3c469 100644
--- a/pan/tasks/nntp.cc
+++ b/pan/tasks/nntp.cc
@@ -304,10 +304,8 @@ NNTP :: help (Listener * l)
void
NNTP :: get_group (Listener * l, const Quark& group)
{
- _listener = l;
- std::cerr<<"get group "<<group<<"\n";
- _commands.push_back (build_command ("GROUP %s\r\n",group.c_str()));
- write_next_command();
+ if (group != _group)
+ _commands.push_back (build_command ("GROUP %s\r\n",group.c_str()));
}
@@ -319,7 +317,7 @@ NNTP :: xover (const Quark & group,
{
_listener = l;
- get_group(l,group);
+ get_group(group);
_commands.push_back (build_command ("XOVER %"G_GUINT64_FORMAT"-%"G_GUINT64_FORMAT"\r\n", low, high));
@@ -362,7 +360,7 @@ NNTP :: article (const Quark & group,
{
_listener = l;
- get_group(l,group);
+ get_group(group);
_commands.push_back (build_command ("ARTICLE %"G_GUINT64_FORMAT"\r\n", article_number));
@@ -376,7 +374,7 @@ NNTP :: article (const Quark & group,
{
_listener = l;
- get_group(l,group);
+ get_group(group);
_commands.push_back (build_command ("ARTICLE %s\r\n", message_id));
diff --git a/pan/tasks/nntp.h b/pan/tasks/nntp.h
index 60e6d51..c74ae06 100644
--- a/pan/tasks/nntp.h
+++ b/pan/tasks/nntp.h
@@ -162,7 +162,7 @@ namespace pan
public:
/* Internal only */
- void get_group (Listener * l, const Quark& group);
+ void get_group (const Quark& group);
void get_headers (const Quark & group, const char * message_id, Listener * l);
void get_headers (const Quark & group, uint64_t article_number, Listener * l);
void get_body (const Quark & group, const char * message_id, Listener * l);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]