From: Michael Friedrich Date: Tue, 29 Sep 2015 09:02:08 +0000 (+0200) Subject: Don't throw an exception when replaying the current replay log file X-Git-Tag: v2.4.0~256 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5b26e60a54e711a5afadafddb30634e74da23fe;p=icinga2 Don't throw an exception when replaying the current replay log file fixes #10239 --- diff --git a/lib/remote/apilistener.cpp b/lib/remote/apilistener.cpp index c4422108f..f1288dcaf 100644 --- a/lib/remote/apilistener.cpp +++ b/lib/remote/apilistener.cpp @@ -692,12 +692,14 @@ void ApiListener::LogGlobHandler(std::vector& files, const String& file) { String name = Utility::BaseName(file); + if (name == "current") + return; + int ts; try { ts = Convert::ToLong(name); - } - catch (const std::exception&) { + } catch (const std::exception&) { return; }