Bug 1926030: fix build on !ENABLE_DBUS after bug 1917548 r=stransky

Differential Revision: https://phabricator.services.mozilla.com/D227683
This commit is contained in:
Landry Breuil 2024-11-05 18:17:44 +00:00
parent 1cd2a4fe29
commit 56c00789dc

View File

@ -820,10 +820,12 @@ nsresult WakeLockTopic::ProcessNextRequest() {
void WakeLockTopic::Shutdown() {
WAKE_LOCK_LOG("WakeLockTopic::Shutdown() state %s",
GetInhibitStateName(mState));
#if defined(MOZ_ENABLE_DBUS)
if (mCancellable) {
g_cancellable_cancel(mCancellable);
mCancellable = nullptr;
}
#endif
}
bool WakeLockTopic::IsWakeLockTypeAvailable(int aWakeLockType) {