Commit d7f39292 authored by Bhushan Shah's avatar Bhushan Shah 📱
Browse files

[core] Return early if no wakeup was cleared

parent c14ff817
......@@ -993,6 +993,7 @@ void Core::clearWakeup(int cookie)
if (erased == m_scheduledWakeups.end()) {
sendErrorReply(QDBusError::InvalidArgs, "Can not clear the invalid wakeup");
return;
}
// reset timerfd
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment