From: Mike Gelfand Date: Thu, 11 Dec 2014 19:57:52 +0000 (+0000) Subject: #5407: Fix crash on Mac when pausing torrents (patch by x190) X-Git-Tag: 2.90~320 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74c6719bb2910ba8c1a70428dcdc9c3d1f78b1d5;p=transmission #5407: Fix crash on Mac when pausing torrents (patch by x190) --- diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index 62f5e36c9..15ab4cacb 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -2612,6 +2612,9 @@ tr_peerMgrGetDesiredAvailable (const tr_torrent * tor) /* common shortcuts... */ + if (!tor->isRunning) + return 0; + if (tr_torrentIsSeed (tor)) return 0;