summaryrefslogtreecommitdiffstats
path: root/src/server/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/main.cpp')
-rw-r--r--src/server/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/main.cpp b/src/server/main.cpp
index d975f80..7ae0466 100644
--- a/src/server/main.cpp
+++ b/src/server/main.cpp
@@ -1,4 +1,3 @@
-#include "mainwindow/mainwindow.h"
#include "serverapp/serverapp.h"
#include <QDebug>
@@ -21,6 +20,8 @@ void usage()
int main(int argc, char** argv)
{
ServerApp app(argc, argv);
+ if (app.shouldExit())
+ return 0;
for (QString a : app.arguments()) {
if (a == "--usage" || a == "--help") {