Skip to content

Commit

Permalink
HelperApp: Ensure the session gets terminated together with the helpe…
Browse files Browse the repository at this point in the history
…r app

This way we don't need to wait for the destructor call to hit.
  • Loading branch information
aleixpol committed Jan 27, 2022
1 parent 522764d commit e66b03b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/helper/HelperApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ namespace SDDM {
, m_socket(new QLocalSocket(this)) {
qInstallMessageHandler(HelperMessageHandler);
SDDM::SignalHandler s;
QObject::connect(&s, &SDDM::SignalHandler::sigtermReceived, QCoreApplication::instance(), [] {
QObject::connect(&s, &SDDM::SignalHandler::sigtermReceived, QCoreApplication::instance(), [this] {
m_session->stop();
QCoreApplication::instance()->exit(-1);
});

Expand Down

0 comments on commit e66b03b

Please sign in to comment.