mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
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:
parent
1cd2a4fe29
commit
56c00789dc
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user