From c768af386547e0b353040b9ac2932225849d1c7f Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Thu, 26 Mar 2015 18:32:33 +0000 Subject: [PATCH] #5407: Fix crash on Mac when pausing torrents (patch by x190) --- libtransmission/peer-mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index 3e5e4d8af..c490facc2 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -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)) -- 2.40.0