re-activate throttle

pull/702/head
Luke Pulverenti 10 years ago
parent 1735300bcf
commit 322e468eea

@ -25,10 +25,7 @@ namespace MediaBrowser.Api.Playback
public void Start() public void Start()
{ {
if (_processManager.SupportsSuspension) _timer = new Timer(TimerCallback, null, 5000, 5000);
{
//_timer = new Timer(TimerCallback, null, 5000, 5000);
}
} }
private void TimerCallback(object state) private void TimerCallback(object state)
@ -58,8 +55,7 @@ namespace MediaBrowser.Api.Playback
try try
{ {
//_job.Process.StandardInput.WriteLine("p"); _job.Process.StandardInput.WriteLine("p");
_processManager.SuspendProcess(_job.Process);
_isPaused = true; _isPaused = true;
} }
catch (Exception ex) catch (Exception ex)
@ -77,8 +73,7 @@ namespace MediaBrowser.Api.Playback
try try
{ {
//_job.Process.StandardInput.WriteLine("u"); _job.Process.StandardInput.WriteLine("u");
_processManager.ResumeProcess(_job.Process);
_isPaused = false; _isPaused = false;
} }
catch (Exception ex) catch (Exception ex)

Loading…
Cancel
Save