FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit ffb7738e authored by Dr Adam Thorn's avatar Dr Adam Thorn
Browse files

Have server set clients' client when syncing/querying

parent 2f3419de
No related branches found
No related tags found
No related merge requests found
...@@ -132,11 +132,11 @@ namespace WpkgInstaller ...@@ -132,11 +132,11 @@ namespace WpkgInstaller
if(process.ExitCode == 0) if(process.ExitCode == 0)
{ {
// notify clients of success SetClientsState(WpkgMessageState.SUCCESS);
} }
else else
{ {
// notify clients of error SetClientsState(WpkgMessageState.ERROR);
} }
String msg = String.Format("wpkg command finished, with exit code {0}", process.ExitCode); String msg = String.Format("wpkg command finished, with exit code {0}", process.ExitCode);
eventLog.WriteEntry(msg, EventLogEntryType.Information); eventLog.WriteEntry(msg, EventLogEntryType.Information);
...@@ -212,9 +212,11 @@ namespace WpkgInstaller ...@@ -212,9 +212,11 @@ namespace WpkgInstaller
switch (type) switch (type)
{ {
case WpkgMessageRequestType.DO_SYNC: case WpkgMessageRequestType.DO_SYNC:
SetClientsState(WpkgMessageState.SYNCING);
RunWpkgSync(); RunWpkgSync();
break; break;
case WpkgMessageRequestType.RUN_QUERY: case WpkgMessageRequestType.RUN_QUERY:
SetClientsState(WpkgMessageState.QUERYING);
RunWpkgQuery(); RunWpkgQuery();
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment