timeout while fixed-wait is expected and no error
authort4.ravenbird <t4.ravenbird@gmail.com>
Wed, 19 Feb 2014 14:59:32 +0000 (15:59 +0100)
committert4.ravenbird <t4.ravenbird@gmail.com>
Thu, 20 Feb 2014 07:29:44 +0000 (08:29 +0100)
xbmc/network/WakeOnAccess.cpp

index 446c7e3..0b7a3cc 100644 (file)
@@ -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");
   }