- May 14, 2008
- 3,558
- 434
- Home Country
- Germany
- Thread starter
- #101
@morpheus_xx to get the shutdown / standby reliable i needed another additional patch. Otherwise the thread may be executed too late.
diff --git a/MediaPortal/Source/Core/MediaPortal.Common/Services/Runtime/PowerEventHandler.cs b/MediaPortal/Source/Core/MediaPortal.Common/Services/Runtime/PowerEventHandler.cs
index 407a40f..e623456 100644
--- a/MediaPortal/Source/Core/MediaPortal.Common/Services/Runtime/PowerEventHandler.cs
+++ b/MediaPortal/Source/Core/MediaPortal.Common/Services/Runtime/PowerEventHandler.cs
@@ -45,7 +45,7 @@ namespace MediaPortal.Common.Services.Runtime
public PowerEventHandler()
{
- _powerEventThread = new Thread(PowerEventHandlerThread) { Name = "PwrEvtHnd", IsBackground = true, Priority = ThreadPriority.BelowNormal };
+ _powerEventThread = new Thread(PowerEventHandlerThread) { Name = "PwrEvtHnd", IsBackground = true, Priority = ThreadPriority.Highest };
_powerEventThread.Start();
}
diff --git a/MediaPortal/Source/Core/MediaPortal.Common/Services/Runtime/PowerEventHandler.cs b/MediaPortal/Source/Core/MediaPortal.Common/Services/Runtime/PowerEventHandler.cs
index 407a40f..e623456 100644
--- a/MediaPortal/Source/Core/MediaPortal.Common/Services/Runtime/PowerEventHandler.cs
+++ b/MediaPortal/Source/Core/MediaPortal.Common/Services/Runtime/PowerEventHandler.cs
@@ -45,7 +45,7 @@ namespace MediaPortal.Common.Services.Runtime
public PowerEventHandler()
{
- _powerEventThread = new Thread(PowerEventHandlerThread) { Name = "PwrEvtHnd", IsBackground = true, Priority = ThreadPriority.BelowNormal };
+ _powerEventThread = new Thread(PowerEventHandlerThread) { Name = "PwrEvtHnd", IsBackground = true, Priority = ThreadPriority.Highest };
_powerEventThread.Start();
}