------------------------------------------------------------
revno: 2896
fixes bug: https://launchpad.net/bugs/972709
committer: eMTee <[email protected]>
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);

_______________________________________________
Mailing list: https://launchpad.net/~linuxdcpp-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~linuxdcpp-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to