home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
MPstandbyHandler
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="visteon" data-source="post: 555655" data-attributes="member: 58626"><p>I have been using this for over a year now and without it standby would be impossible so thanks very much.</p><p></p><p>After setting up a new PC I had problems during the resume with a second call to Resume() from PowerBroadcastStatus.ResumeSuspend:</p><p></p><p>This seemed to abort the resume process.</p><p></p><p>I changed the code in MpshService.cs:</p><p></p><p> case PowerBroadcastStatus.ResumeSuspend:</p><p> // The system has resumed operation after being suspended.</p><p> if (isResuming) Logger.Info("OnResume - Already resuming !Test!");</p><p> else Resume();</p><p> break;</p><p></p><p>This is so Resume() is not called again if it has not completed. My system has been running fine for the last 3 weeks with this mod.</p><p></p><p>I am no expert on C# and would be interested if anyone can tell me what happens if a function is called again before it has completed the first time.</p><p></p><p>My guess is that the code :</p><p></p><p> if (isResuming)</p><p> {</p><p> Logger.Info("OnResume - Already resuming");</p><p> return;</p><p> }</p><p></p><p>causes the first call to the function to terminate too.</p><p></p><p>Hope this may help others if it is integrated in the project.</p></blockquote><p></p>
[QUOTE="visteon, post: 555655, member: 58626"] I have been using this for over a year now and without it standby would be impossible so thanks very much. After setting up a new PC I had problems during the resume with a second call to Resume() from PowerBroadcastStatus.ResumeSuspend: This seemed to abort the resume process. I changed the code in MpshService.cs: case PowerBroadcastStatus.ResumeSuspend: // The system has resumed operation after being suspended. if (isResuming) Logger.Info("OnResume - Already resuming !Test!"); else Resume(); break; This is so Resume() is not called again if it has not completed. My system has been running fine for the last 3 weeks with this mod. I am no expert on C# and would be interested if anyone can tell me what happens if a function is called again before it has completed the first time. My guess is that the code : if (isResuming) { Logger.Info("OnResume - Already resuming"); return; } causes the first call to the function to terminate too. Hope this may help others if it is integrated in the project. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
MPstandbyHandler
Contact us
RSS
Top
Bottom