diff OrthancServer/main.cpp @ 1730:bc34c69b594a

New URI "/tools/shutdown" to stop Orthanc from the REST API
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 21 Oct 2015 10:34:29 +0200
parents 131136aeeaa7
children e1f5ab395297
line wrap: on
line diff
--- a/OrthancServer/main.cpp	Tue Oct 20 11:22:50 2015 +0200
+++ b/OrthancServer/main.cpp	Wed Oct 21 10:34:29 2015 +0200
@@ -476,8 +476,8 @@
 
   context.GetLua().Execute("Initialize");
 
-  Toolbox::ServerBarrier(restApi.ResetRequestReceivedFlag());
-  bool restart = restApi.ResetRequestReceivedFlag();
+  Toolbox::ServerBarrier(restApi.LeaveBarrierFlag());
+  bool restart = restApi.IsResetRequestReceived();
 
   context.GetLua().Execute("Finalize");