if(boost::iequals(wcmd, L"EXIT") || boost::iequals(wcmd, L"Q") || boost::iequals(wcmd, L"QUIT") || boost::iequals(wcmd, L"BYE"))
{
+ CASPAR_LOG(info) << L"Received message from Console: " << wcmd << L"\\r\\n";
should_wait_for_keypress = true;
shutdown_server_now.set_value(false); //false to not restart
break;
CASPAR_LOG(info) << "Successfully shutdown CasparCG Server.";
- if (!should_wait_for_keypress)
+ if (should_wait_for_keypress)
wait_for_keypress();
}
catch(const boost::property_tree::file_parser_error& e)