Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/MP1-4535-BUG-TvServer_cr…
Browse files Browse the repository at this point in the history
…ashes_if_PingMonitor_is_enabled_and_pinged_host_is_not_reachable'
  • Loading branch information
HomeY committed Jul 24, 2014
2 parents 6d741eb + 4985345 commit 29f9d3f
Showing 1 changed file with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,21 @@ public StandbyMode StandbyMode

private void PingCompletedCallback(object sender, PingCompletedEventArgs e)
{
if (e.Cancelled)
try
{
Log.Debug("PS: PingCompletedCallback, Ping canceled.");
return;
}
if (e.Cancelled)
{
Log.Debug("PS: PingCompletedCallback, Ping canceled.");
return;
}

if (e.Reply.Status == IPStatus.Success)
{
_isActiveHost = true;
Log.Debug("PS: PingMonitor found an active host {0}", e.Reply.Address);
if (e.Reply.Status == IPStatus.Success)
{
_isActiveHost = true;
Log.Debug("PS: PingMonitor found an active host {0}", e.Reply.Address);
}
}
catch (Exception) { }
}

public void UserShutdownNow() { }
Expand Down

0 comments on commit 29f9d3f

Please sign in to comment.