heartbeat support

This commit is contained in:
April Ayres-Griffiths 2019-04-18 17:40:07 +10:00
parent 41946ba7e5
commit b15be38134
5 changed files with 6 additions and 5 deletions

View File

@ -3174,6 +3174,8 @@ end;
procedure TGUIForm.FSTimerTimer(Sender: TObject);
begin
isFS := (GetConfig( 'video/current.fullscreen' ) = '1');
SimpleGet(baseUrl+'/api/control/system/heartbeat');
end;
procedure TGUIForm.InputClick(Sender: TObject);
@ -3288,11 +3290,8 @@ begin
exit;
if MicroM8Process.Active then
exit;
{ okay not running and we want to start it }
MicroM8Process.Active := true;
Sleep(1000);
lx := -1;
ReposWindow;
{ okay not running and we want to quit }
Application.Terminate;
end;
end.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -3174,6 +3174,8 @@ end;
procedure TGUIForm.FSTimerTimer(Sender: TObject);
begin
isFS := (GetConfig( 'video/current.fullscreen' ) = '1');
if not hidden then
SimpleGet(baseUrl+'/api/control/system/heartbeat');
end;
procedure TGUIForm.InputClick(Sender: TObject);