← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2848: fix sfv checker

 

------------------------------------------------------------
revno: 2848
committer: eMTee <emtee11@xxxxxxxxx>
branch nick: dcplusplus
timestamp: Wed 2012-02-01 21:48:11 +0100
message:
  fix sfv checker
modified:
  dcpp/QueueManager.cpp


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'dcpp/QueueManager.cpp'
--- dcpp/QueueManager.cpp	2012-01-23 20:18:58 +0000
+++ dcpp/QueueManager.cpp	2012-02-01 20:48:11 +0000
@@ -1061,9 +1061,9 @@
 			} else if(d->getType() == Transfer::TYPE_FILE) {
 				q->addSegment(d->getSegment());
 
+				auto crcError = q->isFinished() && BOOLSETTING(SFV_CHECK) && checkSfv(q, d.get());
+
 				if(q->isFinished()) {
-					auto crcError = BOOLSETTING(SFV_CHECK) && checkSfv(q, d.get());
-
 					// Check if we need to move the file
 					if(!d->getTempTarget().empty() && (Util::stricmp(d->getPath().c_str(), d->getTempTarget().c_str()) != 0) ) {
 						moveFile(d->getTempTarget(), d->getPath());