Skip to content

Commit e10e61a

Browse files
committed
chore: block calls to prepareShutDownSound
as title Log: as title Pms: BUG-316643
1 parent 2ffc900 commit e10e61a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/lightdm-deepin-greeter/greeterworker.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,6 +1209,11 @@ void GreeterWorker::prepareShutdownSound()
12091209
{
12101210
QDBusInterface soundPlayerInter("org.deepin.dde.SoundThemePlayer1", "/org/deepin/dde/SoundThemePlayer1",
12111211
"org.deepin.dde.SoundThemePlayer1", QDBusConnection::systemBus());
1212-
soundPlayerInter.call("PrepareShutdownSound", static_cast<int>(m_model->currentUser()->uid()));
1212+
if (!soundPlayerInter.isValid() || !m_model->currentUser()) {
1213+
qCWarning(DDE_SHELL) << "Sound player interface is not valid or current user is null:" << soundPlayerInter.isValid();
1214+
return;
1215+
}
1216+
1217+
//soundPlayerInter.call("PrepareShutdownSound", static_cast<int>(m_model->currentUser()->uid()));
12131218
}
12141219
#endif

0 commit comments

Comments
 (0)