Make sure standalone modes can be launched when connected on USB without client

This commit is contained in:
Philippe Teuwen 2019-06-02 23:20:02 +02:00
commit d7614684f8
6 changed files with 72 additions and 35 deletions

View file

@ -211,6 +211,10 @@ main_loop(char *script_cmds_file, char *script_cmd) {
}
} // end while
clearCommandBuffer();
SendCommandNG(CMD_QUIT_SESSION, NULL, 0);
msleep(100); // Make sure command is sent before killing client
if (sf)
fclose(sf);