summaryrefslogtreecommitdiff
path: root/src/TrackerWatcherCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-01-05 16:01:46 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-01-05 16:01:46 +0000
commit4db349c1f32b4a313d12d114137432441633d00a (patch)
tree417451971e264834312cfd8339c79930d680a5d1 /src/TrackerWatcherCommand.cc
parent338e8aca09331d3e7fa4e1e8e1f9d10260986772 (diff)
2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Untabify. Fixed one line in copyright which is longer than 80 columns. * src * test
Diffstat (limited to 'src/TrackerWatcherCommand.cc')
-rw-r--r--src/TrackerWatcherCommand.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/TrackerWatcherCommand.cc b/src/TrackerWatcherCommand.cc
index 3c66e1b7..af9a9f13 100644
--- a/src/TrackerWatcherCommand.cc
+++ b/src/TrackerWatcherCommand.cc
@@ -16,7 +16,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* In addition, as a special exception, the copyright holders give
* permission to link the code of portions of this program with the
@@ -81,7 +81,7 @@ bool TrackerWatcherCommand::execute() {
if(_trackerRequestGroup.isNull()) {
return true;
} else if(_trackerRequestGroup->getNumCommand() == 0 ||
- _trackerRequestGroup->downloadFinished()) {
+ _trackerRequestGroup->downloadFinished()) {
return true;
} else {
_trackerRequestGroup->setForceHaltRequested(true);
@@ -112,7 +112,7 @@ bool TrackerWatcherCommand::execute() {
logger->error(EX_EXCEPTION_CAUGHT, ex);
_btAnnounce->announceFailure();
if(_btAnnounce->isAllAnnounceFailed()) {
- _btAnnounce->resetAnnounce();
+ _btAnnounce->resetAnnounce();
}
}
_trackerRequestGroup.reset();
@@ -151,7 +151,7 @@ void TrackerWatcherCommand::processTrackerResponse
{
_btAnnounce->processAnnounceResponse
(reinterpret_cast<const unsigned char*>(trackerResponse.c_str()),
- trackerResponse.size());
+ trackerResponse.size());
while(!_btRuntime->isHalt() && _btRuntime->lessThanMinPeers()) {
PeerHandle peer = _peerStorage->getUnusedPeer();
if(peer.isNull()) {
@@ -216,8 +216,8 @@ TrackerWatcherCommand::createRequestGroup(const std::string& uri)
static const std::string TRACKER_ANNOUNCE_FILE("[tracker.announce]");
SharedHandle<DownloadContext> dctx
(new DownloadContext(getOption()->getAsInt(PREF_SEGMENT_SIZE),
- 0,
- TRACKER_ANNOUNCE_FILE));
+ 0,
+ TRACKER_ANNOUNCE_FILE));
dctx->setDir(A2STR::NIL);
dctx->getFileEntries().front()->setUris(uris);
rg->setDownloadContext(dctx);