added nxlog_close call if server initialization failed
authorVictor Kirhenshtein <victor@netxms.org>
Sat, 14 May 2016 07:50:39 +0000 (10:50 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Sat, 14 May 2016 07:50:39 +0000 (10:50 +0300)
src/server/netxmsd/netxmsd.cpp

index 9ee7957..dba66fe 100644 (file)
@@ -417,6 +417,7 @@ int main(int argc, char* argv[])
             UnlockDB();
             ShutdownDB();
          }
+         nxlog_close();
          return 3;
       }
       Main(NULL);
@@ -448,6 +449,7 @@ int main(int argc, char* argv[])
          UnlockDB();
          ShutdownDB();
       }
+      nxlog_close();
       return 3;
    }