Skip to content

Commit

Permalink
revisit app start timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
mmertama committed Nov 23, 2024
1 parent 97c4da7 commit b3400f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gempyrelib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#cmake_minimum_required (VERSION 3.25)


project (gempyre VERSION 1.6.0 LANGUAGES CXX C)
project (gempyre VERSION 1.6.1 LANGUAGES CXX C)
# Must use GNUInstallDirs to install libraries into correct
# locations on all platforms.
include(GNUInstallDirs)
Expand Down
10 changes: 8 additions & 2 deletions gempyrelib/src/appui/ui/gempyre_internal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,14 @@ GempyreInternal& Ui::ref() {

// if server is not alive in 10s it is dead, right?
m_app_ui->after(10s, [this]() {
if (m_server->isUiReady())
exit(1);
if (!m_server->isUiReady()) {
auto errfunc = m_app_ui->on_error(nullptr);
if (errfunc) {
errfunc("Error", "ui not ready");
m_app_ui->on_error(errfunc);
}
exit(91);
}
});

}} {}
Expand Down

0 comments on commit b3400f8

Please sign in to comment.