Skip to content
Snippets Groups Projects
Commit 52b690f9 authored by echicken's avatar echicken
Browse files

Exit if user #1 doesn't exist yet.

parent 69dadbfd
Branches
Tags
No related merge requests found
......@@ -114,6 +114,9 @@ var cleanUp = function() {
jsonClient.disconnect();
}
if(system.lastuser < 1)
exit();
try {
initJson();
main();
......
......@@ -90,6 +90,9 @@ var cleanUp = function() {
jsonClient.disconnect();
}
if(system.lastuser < 1)
exit();
try {
initJson();
main();
......@@ -98,4 +101,4 @@ try {
log(LOG_ERR, err);
}
exit();
\ No newline at end of file
exit();
......@@ -228,6 +228,9 @@ var cleanUp = function() {
jsonClient.disconnect();
}
if(system.lastuser < 1)
exit();
// Try to do things, log an error if necessary
try {
init();
......@@ -238,4 +241,4 @@ try {
}
// This is implied, but hey, why not?
exit();
\ No newline at end of file
exit();
......@@ -58,6 +58,9 @@ var cleanUp = function() {
jsonClient.disconnect();
}
if(system.lastuser < 1)
exit();
try {
init();
main();
......@@ -65,4 +68,4 @@ try {
exit();
} catch(err) {
log(LOG_ERR, "Oneliners service error: " + err);
}
\ No newline at end of file
}
......@@ -170,6 +170,9 @@ var cleanUp = function() {
jsonClient.disconnect();
}
if(system.lastuser < 1)
exit();
try {
init();
main();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment