Skip to content

Commit

Permalink
Fix service looper
Browse files Browse the repository at this point in the history
  • Loading branch information
Jbob committed May 27, 2015
1 parent 01c7833 commit deafeb7
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
Binary file modified FOGService.v12.suo
Binary file not shown.
3 changes: 1 addition & 2 deletions Handlers/Communication/CommunicationHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ public static Response GetResponse(string postfix)

if (!response.StartsWith("#!ihc")) return ParseResponse(response);

Authenticate();
return GetResponse(postfix);
return Authenticate() ? GetResponse(postfix) : new Response();
}
catch (Exception ex)
{
Expand Down
2 changes: 1 addition & 1 deletion Service/FOGSystemService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public override void Start()
LogHandler.NewLine();
LogHandler.PaddedHeader("Authentication");
LogHandler.Log("Client-Info", string.Format("Version: {0}", RegistryHandler.GetSystemSetting("Version")));
CommunicationHandler.Authenticate();
if (!CommunicationHandler.Authenticate()) return;
LogHandler.NewLine();

base.Start();
Expand Down
17 changes: 16 additions & 1 deletion SignBinaries.cmd
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
@ECHO OFF
START /wait /B cmd /c %~dp0SignCode.cmd %~dp0bin\FOGService.msi
START /wait /B cmd /c %~dp0SignCode.cmd %~dp0bin\AbstractService.dll
START /wait /B cmd /c %~dp0SignCode.cmd %~dp0bin\Handlers.dll
START /wait /B cmd /c %~dp0SignCode.cmd %~dp0bin\Modules.dll
START /wait /B cmd /c %~dp0SignCode.cmd %~dp0bin\PipeClient.dll
START /wait /B cmd /c %~dp0SignCode.cmd %~dp0bin\PipeServer.dll
START /wait /B cmd /c %~dp0SignCode.cmd %~dp0bin\FOGService.exe
START /wait /B cmd /c %~dp0SignCode.cmd %~dp0bin\FOGUpdateHelper.exe
START /wait /B cmd /c %~dp0SignCode.cmd %~dp0bin\FOGUpdateWaiter.exe
START /wait /B cmd /c %~dp0SignCode.cmd %~dp0bin\FOGUserService.exe
START /wait /B cmd /c %~dp0SignCode.cmd %~dp0bin\FOGTray.exe
START /wait /B cmd /c %~dp0SignCode.cmd %~dp0bin\Debugger.exe
START /wait /B cmd /c %~dp0SignCode.cmd %~dp0bin\Microsoft.Win32.TaskScheduler.dll
START /wait /B cmd /c %~dp0SignCode.cmd %~dp0bin\System.Threading.Tasks.NET35.dll
START /wait /B cmd /c %~dp0SignCode.cmd %~dp0bin\SetupHelper.dll
START /wait /B cmd /c %~dp0SignCode.cmd %~dp0bin\SetupHelper.CA.dll

0 comments on commit deafeb7

Please sign in to comment.