]> granicus.if.org Git - transmission/commitdiff
#5407: Fix crash on Mac when pausing torrents (patch by x190)
authorMike Gelfand <mikedld@mikedld.com>
Thu, 26 Mar 2015 18:32:33 +0000 (18:32 +0000)
committerMike Gelfand <mikedld@mikedld.com>
Thu, 26 Mar 2015 18:32:33 +0000 (18:32 +0000)
libtransmission/peer-mgr.c

index 3e5e4d8afe6f25bc52eb452e0db2f046502f394f..c490facc2fde64570cc71d1eebc0f8050f386837 100644 (file)
@@ -2612,7 +2612,7 @@ tr_peerMgrGetDesiredAvailable (const tr_torrent * tor)
 
   /* common shortcuts... */
 
-  if (!tor->isRunning)
+  if (!tor->isRunning || tor->isStopping)
     return 0;
 
   if (tr_torrentIsSeed (tor))