Browse Source

2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

	Log error in AccRequestGroup when reading BitTorrent/Metalink 
file is
	failed. Also fixed memory link when exception is thrown there.
	* src/main.cc (AccRequestGroup)
Tatsuhiro Tsujikawa 17 năm trước cách đây
mục cha
commit
0f92203ffe
2 tập tin đã thay đổi với 10 bổ sung0 xóa
  1. 6 0
      ChangeLog
  2. 4 0
      src/main.cc

+ 6 - 0
ChangeLog

@@ -1,3 +1,9 @@
+2008-04-26  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
+
+	Log error in AccRequestGroup when reading BitTorrent/Metalink file is
+	failed. Also fixed memory link when exception is thrown there.
+	* src/main.cc (AccRequestGroup)
+
 2008-04-26  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
 
 	Added build-in "Accept-Features" support. For now only "metalink" is

+ 4 - 0
src/main.cc

@@ -224,6 +224,8 @@ public:
       } catch(RecoverableException* e) {
 	// error occurred while parsing torrent file.
 	// We simply ignore it.	
+	LogFactory::getInstance()->error(EX_EXCEPTION_CAUGHT, e);
+	delete e;
       }
     }
 #endif // ENABLE_BITTORRENT
@@ -236,6 +238,8 @@ public:
       } catch(RecoverableException* e) {
 	// error occurred while parsing metalink file.
 	// We simply ignore it.
+	LogFactory::getInstance()->error(EX_EXCEPTION_CAUGHT, e);
+	delete e;
       }
     }
 #endif // ENABLE_METALINK