From 74c6719bb2910ba8c1a70428dcdc9c3d1f78b1d5 Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Thu, 11 Dec 2014 19:57:52 +0000 Subject: [PATCH] #5407: Fix crash on Mac when pausing torrents (patch by x190) --- libtransmission/peer-mgr.c | 3 +++ 1 file changed, 3 insertions(+) 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;