]> granicus.if.org Git - icinga2/commitdiff
Don't throw an exception when replaying the current replay log file
authorMichael Friedrich <michael.friedrich@netways.de>
Tue, 29 Sep 2015 09:02:08 +0000 (11:02 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Tue, 29 Sep 2015 09:02:08 +0000 (11:02 +0200)
fixes #10239

lib/remote/apilistener.cpp

index c4422108f8e27038aa15787849b2cbea939eeac5..f1288dcafd73bf4c44f3a04557e19f47681ffbc3 100644 (file)
@@ -692,12 +692,14 @@ void ApiListener::LogGlobHandler(std::vector<int>& 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;
        }