Permalink
Browse files

MP1-4781V14 : madVR V489 : revert Suspend code (seems not needed now)

  • Loading branch information...
Sebastiii committed Oct 9, 2018
1 parent 8be1944 commit 30090f3aafde8c8fb3d1e793375870976ea623e0
Showing with 1 addition and 6 deletions.
  1. +1 −6 mediaportal/MediaPortal.Application/MediaPortal.cs
@@ -1897,7 +1897,6 @@ private bool OnSysCommand(ref Message msg)
/// <param name="msg"></param>
private bool OnPowerBroadcast(ref Message msg)
{
bool result = true;
try
{
Log.Info("Main: WM_POWERBROADCAST ({0})", Enum.GetName(typeof(PBT_EVENT), msg.WParam.ToInt32()));
@@ -1911,10 +1910,6 @@ private bool OnPowerBroadcast(ref Message msg)
_delayedResume = false;
_suspended = true;

SetThreadExecutionState(EXECUTION_STATE.ES_CONTINUOUS | EXECUTION_STATE.ES_SYSTEM_REQUIRED);
msg.Result = (IntPtr)1;
result = false;

// Suspending GUIGraphicsContext when going to S3
if (GUIGraphicsContext.CurrentState == GUIGraphicsContext.State.RUNNING)
{
@@ -2143,7 +2138,7 @@ private bool OnPowerBroadcast(ref Message msg)
{
Log.Error("Main: Exception catch on OnPowerBroadcast : {0}", ex);
}
return result;
return true;
}

private bool CheckDelayedResume()

0 comments on commit 30090f3

Please sign in to comment.