]> git.sesse.net Git - casparcg/blobdiff - shell/main.cpp
[ffmpeg] Fixed compilation problems in Linux
[casparcg] / shell / main.cpp
index a811eb7d508b91c82786bef53e5724682c94eedc..d742cb0d9c633f6fe2361cae894035aaa11178f3 100644 (file)
@@ -119,6 +119,7 @@ void do_run(
 
                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;
@@ -332,7 +333,7 @@ int main(int argc, char** argv)
                
                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)