@@ -920,21 +920,21 @@ export class CommandToXRPMgr {
920920 " file.seek(0)\n" +
921921 " file.write(b'\\x00')\n" +
922922 " doNothing = True\n" +
923- " else:\n" +
924- " file.seek(0)\n" +
925- " file.write(b'\\x01')\n" +
923+ // " else:\n" +
924+ // " file.seek(0)\n" +
925+ // " file.write(b'\\x01')\n" +
926926 " if(not doNothing):\n" +
927927 " with open('" + fileToEx + "', mode='r') as exfile:\n" +
928928 " code = exfile.read()\n" +
929929 " execCode = compile(code, '" + fileToEx2 + "', 'exec')\n" +
930930 " exec(execCode)\n" +
931- " with open(FILE_PATH, 'r+b') as file:\n" +
932- " file.write(b'\\x00')\n" +
931+ // " with open(FILE_PATH, 'r+b') as file:\n" +
932+ // " file.write(b'\\x00')\n" +
933933 "except Exception as e:\n" +
934934 " import sys\n" +
935935 " sys.print_exception(e)\n" +
936- " with open(FILE_PATH, 'r+b') as file:\n" +
937- " file.write(b'\\x00')\n" +
936+ // " with open(FILE_PATH, 'r+b') as file:\n" +
937+ // " file.write(b'\\x00')\n" +
938938 "finally:\n" +
939939 " import gc\n" +
940940 " gc.collect()\n" +
@@ -988,11 +988,13 @@ export class CommandToXRPMgr {
988988 }
989989
990990 /**
991- * stopProgram - stop program execution on the XRP
991+ * stopProgram - stop program execution on the XRP because they pushed the STOP button
992992 */
993993 stopProgram ( ) {
994994 if ( this . connection ) {
995+ this . connection . prepareForStop ( ) ;
995996 this . connection . getToREPL ( ) ;
997+ this . BUSY = false ;
996998 }
997999 }
9981000
0 commit comments