summaryrefslogtreecommitdiff
path: root/src/PeerInitiateConnectionCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-04-23 15:00:09 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-04-23 15:00:09 +0000
commit395505483722e8eb8392be9f928b594bc54928b6 (patch)
tree9f815d909b8d2c107cfdf21d8605f8d8a7e0ba2b /src/PeerInitiateConnectionCommand.cc
parent67030976522c52412238432f3a5d90ca63c66c09 (diff)
2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed RequestGroupAware * src/AbstractCommand.cc * src/AbstractCommand.h * src/ActivePeerConnectionCommand.cc * src/ActivePeerConnectionCommand.h * src/DHTGetPeersCommand.cc * src/DHTGetPeersCommand.h * src/InitiatorMSEHandshakeCommand.cc * src/InitiatorMSEHandshakeCommand.h * src/Makefile.am * src/PeerInitiateConnectionCommand.cc * src/PeerInitiateConnectionCommand.h * src/PeerInteractionCommand.cc * src/PeerInteractionCommand.h * src/RealtimeCommand.cc * src/RealtimeCommand.h * src/RequestGroupAware.cc: Removed * src/RequestGroupAware.h: Removed * src/SeedCheckCommand.cc * src/SeedCheckCommand.h * src/SleepCommand.cc * src/TrackerWatcherCommand.cc * src/TrackerWatcherCommand.h
Diffstat (limited to 'src/PeerInitiateConnectionCommand.cc')
-rw-r--r--src/PeerInitiateConnectionCommand.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/PeerInitiateConnectionCommand.cc b/src/PeerInitiateConnectionCommand.cc
index d304b89c..a815bced 100644
--- a/src/PeerInitiateConnectionCommand.cc
+++ b/src/PeerInitiateConnectionCommand.cc
@@ -47,6 +47,7 @@
#include "PeerStorage.h"
#include "PieceStorage.h"
#include "PeerConnection.h"
+#include "RequestGroup.h"
namespace aria2 {
@@ -60,16 +61,18 @@ PeerInitiateConnectionCommand::PeerInitiateConnectionCommand
bool mseHandshakeEnabled)
:
PeerAbstractCommand(cuid, peer, e),
- RequestGroupAware(requestGroup),
+ _requestGroup(requestGroup),
_btContext(btContext),
_btRuntime(btRuntime),
_mseHandshakeEnabled(mseHandshakeEnabled)
{
_btRuntime->increaseConnections();
+ _requestGroup->increaseNumCommand();
}
PeerInitiateConnectionCommand::~PeerInitiateConnectionCommand()
{
+ _requestGroup->decreaseNumCommand();
_btRuntime->decreaseConnections();
}