From 106adf135cb4cc51c51673bb1f70766014a5c8d3 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 18 Oct 2022 14:29:17 +0800 Subject: [PATCH] Handle all types of alerts on shutdown There might be alerts already queued in buffer waiting to be handled at the time of pausing the session, so don't skip over them. --- src/base/bittorrent/sessionimpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/base/bittorrent/sessionimpl.cpp b/src/base/bittorrent/sessionimpl.cpp index 9d85c7944..3f9d3633a 100644 --- a/src/base/bittorrent/sessionimpl.cpp +++ b/src/base/bittorrent/sessionimpl.cpp @@ -2916,8 +2916,9 @@ void SessionImpl::saveResumeData() || (alertType == lt::save_resume_data_failed_alert::alert_type)) { hasWantedAlert = true; - handleAlert(a); } + + handleAlert(a); } if (hasWantedAlert)