Skip to content

Commit

Permalink
fix: accessing log when app is destroyed
Browse files Browse the repository at this point in the history
as title.
  • Loading branch information
18202781743 committed Jan 23, 2025
1 parent d4991a8 commit 4597197
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dde-blackwidget/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ bool onPreparingForShutdown() {
}

void handleSIGTERM(int signal) {
if (QCoreApplication::closingDown())
return;
qInfo() << "handleSIGTERM: " << signal;

bool bShutdown = onPreparingForShutdown();
Expand Down

0 comments on commit 4597197

Please sign in to comment.