Skip to content
Browse files

timeout while fixed-wait is expected and no error

  • Loading branch information...
1 parent f6f539a commit 6ab504da6cb4487fee1bc343ba9c13af0ff7b780 @t4-ravenbird t4-ravenbird committed Feb 19, 2014
Showing with 6 additions and 2 deletions.
  1. +6 −2 xbmc/network/WakeOnAccess.cpp
View
8 xbmc/network/WakeOnAccess.cpp
@@ -356,6 +356,9 @@ bool CWakeOnAccess::WakeUpHost (const CStdString& hostName, const string& custom
bool ret = WakeUpHost(server);
+ if (!ret) // extra log if we fail for some reason
+ CLog::Log(LOGWARNING,"WakeOnAccess failed to bring up [%s] - there may be trouble ahead !", hostName.c_str());
+
TouchHostEntry(hostName);
return ret;
@@ -416,11 +419,12 @@ bool CWakeOnAccess::WakeUpHost(const WakeUpEntry& server)
}
}
+ // we have ping response ; just add extra wait-for-services before returning if requested
+
{
WaitCondition waitObj ; // wait uninteruptable fixed time for services ..
- if (ProgressDialogHelper::Success != dlg.ShowAndWait (waitObj, server.wait_services_sec, LOCALIZED(13032)))
- return false;
+ dlg.ShowAndWait (waitObj, server.wait_services_sec, LOCALIZED(13032));
CLog::Log(LOGNOTICE,"WakeOnAccess sequence completed, server started");
}

0 comments on commit 6ab504d

Please sign in to comment.
Something went wrong with that request. Please try again.