Fixed extraneous error message on suspend

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpowersave@1113226 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
pull/1/head
tpearson 15 years ago
parent 9068a0fa20
commit 65b5cd4b6c

@ -2270,7 +2270,8 @@ void kpowersave::handleResumeSignal() {
}
// handle result of the resume/suspend
if (resume_result == 0 || resume_result == INT_MAX) {
// 1 is a valid return code; don't error out when it is received!
if ((resume_result == 0) || (resume_result == 1) || (resume_result == INT_MAX)) {
if ( resume_result == INT_MAX )
kdWarning() << "Unknown if we successful resumed, look like a D-Bus timeout since "
<< "elapsed time between suspend and resume is higher than 6 hours" << endl;

Loading…
Cancel
Save