]> granicus.if.org Git - transmission/commitdiff
#5407: Fix crash on Mac when pausing torrents (patch by x190)
authorMike Gelfand <mikedld@mikedld.com>
Thu, 11 Dec 2014 19:57:52 +0000 (19:57 +0000)
committerMike Gelfand <mikedld@mikedld.com>
Thu, 11 Dec 2014 19:57:52 +0000 (19:57 +0000)
libtransmission/peer-mgr.c

index 62f5e36c99509a58529e7bb69af80fa8dae749f4..15ab4cacb19e08479fb00d51195bac1c8d576a64 100644 (file)
@@ -2612,6 +2612,9 @@ tr_peerMgrGetDesiredAvailable (const tr_torrent * tor)
 
   /* common shortcuts... */
 
+  if (!tor->isRunning)
+    return 0;
+
   if (tr_torrentIsSeed (tor))
     return 0;