comparison 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
comparison
equal deleted inserted replaced
1726:9d8bb6bc2890 1730:bc34c69b594a
474 { 474 {
475 LOG(WARNING) << "Orthanc has started"; 475 LOG(WARNING) << "Orthanc has started";
476 476
477 context.GetLua().Execute("Initialize"); 477 context.GetLua().Execute("Initialize");
478 478
479 Toolbox::ServerBarrier(restApi.ResetRequestReceivedFlag()); 479 Toolbox::ServerBarrier(restApi.LeaveBarrierFlag());
480 bool restart = restApi.ResetRequestReceivedFlag(); 480 bool restart = restApi.IsResetRequestReceived();
481 481
482 context.GetLua().Execute("Finalize"); 482 context.GetLua().Execute("Finalize");
483 483
484 if (restart) 484 if (restart)
485 { 485 {