← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2154: catch all flush exceptions

 

------------------------------------------------------------
revno: 2154
committer: poy <poy@xxxxxxxxxx>
branch nick: repo
timestamp: Tue 2010-05-25 20:28:09 +0200
message:
  catch all flush exceptions
modified:
  changelog.txt
  dcpp/DownloadManager.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 'changelog.txt'
--- changelog.txt	2010-05-16 18:34:43 +0000
+++ changelog.txt	2010-05-25 18:28:09 +0000
@@ -1,3 +1,6 @@
+* [L#550300] Catch more potential file corruptions (thanks bigmuscle)
+* [ADC] NAT traversal to allow passive-passive connections (thanks cologic)
+
 -- 0.762 2010-05-16 --
 * Stability improvement related to menus (poy)
 * [L#539992] Shell menus for directories when browsing own file list (poy)

=== modified file 'dcpp/DownloadManager.cpp'
--- dcpp/DownloadManager.cpp	2010-04-23 18:40:39 +0000
+++ dcpp/DownloadManager.cpp	2010-05-25 18:28:09 +0000
@@ -325,7 +325,7 @@
 		// First, finish writing the file (flushing the buffers and closing the file...)
 		try {
 			d->getFile()->flush();
-		} catch(const FileException& e) {
+		} catch(const Exception& e) {
 			d->resetPos();
 			failDownload(aSource, e.getError());
 			return;