[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/stable/extragear-kde4/network/ktorrent
From:       Joris Guisson <joris.guisson () gmail ! com>
Date:       2009-05-22 8:59:29
Message-ID: 1242982769.623842.10672.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 971277 by guisson:

Fix crash at exit caused by stopping torrent in it's destructor 

BUG: 193585


 M  +1 -0      ChangeLog  
 M  +4 -0      libbtcore/torrent/torrentcontrol.cpp  


--- branches/stable/extragear-kde4/network/ktorrent/ChangeLog #971276:971277
@@ -15,6 +15,7 @@
 - Fix crash when parsing DHT packets (190107)
 - Remove newlines from path names of files when present in torrent file (192652)
 - Properly check for GeoIP system library (193117)
+- Fix crash at exit caused by stopping torrent in it's destructor (193585)
 
 Changes in 3.2.1 :
 - Resort torrents if display name is changed
--- branches/stable/extragear-kde4/network/ktorrent/libbtcore/torrent/torrentcontrol.cpp #971276:971277
@@ -133,7 +133,11 @@
 	TorrentControl::~TorrentControl()
 	{
 		if (stats.running)
+		{
+			// block all signals to prevent crash at exit
+			blockSignals(true);
 			stop(false);
+		}
 		
 		if (tmon)
 			tmon->destroyed();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic