Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit 3f0cd0d

Browse files
committed
added timeout for error exit with no terminal
1 parent 12011ba commit 3f0cd0d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/qdatasyncserver/app.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ void App::dbDone(bool ok)
167167
lastError = QStringLiteral("Failed to setup database. Check error log for details.");
168168
if(currentTerminal)
169169
completeStart();
170+
else {
171+
QTimer::singleShot(5000, this, [](){
172+
qApp->exit(EXIT_FAILURE);
173+
});
174+
}
170175
}
171176

172177
void App::completeStart()

0 commit comments

Comments
 (0)