[mythtv-commits] Ticket #7603: mythfrontend can never connect to just waked up master backend
MythTV
mythtv at cvs.mythtv.org
Sun Jan 3 13:38:06 UTC 2010
#7603: mythfrontend can never connect to just waked up master backend
-------------------------------------+--------------------------------------
Reporter: bam <mybigspam@…> | Owner: danielk
Type: defect | Status: closed
Priority: major | Milestone: 0.23
Component: MythTV - General | Version: head
Severity: medium | Resolution: fixed
Mlocked: 0 |
-------------------------------------+--------------------------------------
Comment(by bam <mybigspam@…>):
Replying to [comment:16 danielk]:
> (In [23052]) Fixes #7603. Fixes the immediate wake-on-lan bug.
Sorry if I misunderstand something, but appears that on call of
WaitForWOL() function
{{{
bool MythContextPrivate::WaitForWOL(int timeout_in_ms)
{
int timeout_remaining = timeout_in_ms;
while (WOLInProgress && (timeout_remaining > 0))
{
VERBOSE(VB_GENERAL, LOC + "Wake-On-Lan in progress, waiting...");
int max_wait = min(1000, timeout_remaining);
WOLInProgressWaitCondition.wait(
&WOLInProgressLock, max_wait);
timeout_remaining -= max_wait;
}
return !WOLInProgress;
}
}}}
the WOLInProgress variable is always false, so the loop inside that
function can never take the control.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7603#comment:19>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list