From 0e30659c26451c1d0f76ae8b03fd89bad8d4cde6 Mon Sep 17 00:00:00 2001
From: thalieht <yjapysgr@sharklasers.com>
Date: Fri, 23 Feb 2018 01:55:28 +0200
Subject: [PATCH] Fix possible crash when using both share limits

Avoid possible crash in "torrent->name()" when processing seeding time of the torrent that already reached the ratio limit.
---
 src/base/bittorrent/session.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/base/bittorrent/session.cpp b/src/base/bittorrent/session.cpp
index d33e679b7..d961dedd2 100644
--- a/src/base/bittorrent/session.cpp
+++ b/src/base/bittorrent/session.cpp
@@ -1788,6 +1788,7 @@ void Session::processShareLimits()
                             torrent->pause();
                             logger->addMessage(tr("'%1' reached the maximum ratio you set. Paused.").arg(torrent->name()));
                         }
+                        continue;
                     }
                 }
             }