If can't connect to db, bail instead of loading config

This commit is contained in:
Isaac Connor 2020-03-04 14:13:44 -05:00
parent 06f480acf8
commit 2882693791
1 changed files with 3 additions and 1 deletions

View File

@ -63,7 +63,9 @@ void zmLoadConfig() {
closedir(configSubFolder); closedir(configSubFolder);
} }
zmDbConnect(); if ( !zmDbConnect() ) {
Fatal("Can't connect to db. Can't continue.");
}
config.Load(); config.Load();
config.Assign(); config.Assign();