From 5f74b6e35328a07e2b2544a24c802c7cea02dd32 Mon Sep 17 00:00:00 2001 From: d_komarov Date: Mon, 14 May 2018 22:00:35 +0300 Subject: [PATCH] Bump `file_error_alert` priority This alert's priority must be higher than `block_downloading_alert`'s to allow custom handling of file errors. With progress notifications enabled, network thread might fully load alerts queue, so file errors from disk thread won't have a chance to be delivered. --- include/libtorrent/alert_types.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libtorrent/alert_types.hpp b/include/libtorrent/alert_types.hpp index 061a67cdb..b44831327 100644 --- a/include/libtorrent/alert_types.hpp +++ b/include/libtorrent/alert_types.hpp @@ -1158,7 +1158,7 @@ namespace libtorrent , char const* op , torrent_handle const& h); - TORRENT_DEFINE_ALERT(file_error_alert, 43) + TORRENT_DEFINE_ALERT_PRIO(file_error_alert, 43, alert_priority_high) static const int static_category = alert::status_notification | alert::error_notification