← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2896: Fix for #972709

 

------------------------------------------------------------
revno: 2896
fixes bug: https://launchpad.net/bugs/972709
committer: eMTee <emtee11@xxxxxxxxx>
branch nick: dcplusplus
timestamp: Tue 2012-04-10 18:52:46 +0200
message:
  Fix for #972709
modified:
  dcpp/FinishedManager.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/FinishedManager.cpp'
--- dcpp/FinishedManager.cpp	2012-03-03 19:33:45 +0000
+++ dcpp/FinishedManager.cpp	2012-04-10 16:52:46 +0000
@@ -183,8 +183,13 @@
 					}
 				}
 				size = t->getSize();
-			} else
+			} else {
 				size = QueueManager::getInstance()->getSize(file);
+				if (size == -1) {
+					// not in the queue anymore?
+					return;
+				}
+			}	
 		}
 
 		Lock l(cs);