root 2 年 前
コミット
5cf6cd9f66
2 ファイル変更43 行追加43 行削除
  1. 1 1
      package.json
  2. 42 42
      src/renderer/uploader.js

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "XGOEdu",
-  "version": "1.1.1",
+  "version": "1.1.3",
   "description": "cocorobo",
   "repository": "https://github.com/CocoRoboLabs/CocoBlockly-desktop.git",
   "scripts": {

+ 42 - 42
src/renderer/uploader.js

@@ -358,12 +358,12 @@ export function pythonupload(code, val, socket) {
     return new Promise(async (resolve, reject) => {
         try {
             if (_childexec && !_childexec.killed) {
-                try {
-                    _childexec.stdin.write('\x03\x02\x03\x1D');
-                }
-                catch (e) {
-                    console.log(e);
-                }
+                // try {
+                //     _childexec.stdin.write('\x03\x02\x03\x1D');
+                // }
+                // catch (e) {
+                //     console.log(e);
+                // }
                 _childexec.kill('SIGKILL');
                 _childexec.killed = true;
             }
@@ -667,12 +667,12 @@ export function pythonuploadfile(code, namepath, val, socket) {
     return new Promise(async (resolve, reject) => {
         try {
             if (_childexec && !_childexec.killed) {
-                try {
-                    _childexec.stdin.write('\x03\x02\x03\x1D');
-                }
-                catch (e) {
-                    console.log(e);
-                }
+                // try {
+                //     _childexec.stdin.write('\x03\x02\x03\x1D');
+                // }
+                // catch (e) {
+                //     console.log(e);
+                // }
                 _childexec.kill('SIGKILL');
                 _childexec.killed = true;
             }
@@ -765,12 +765,12 @@ export function pythonuploadfilebyfile(file, namepath, val, socket) {
     return new Promise(async (resolve, reject) => {
         try {
             if (_childexec && !_childexec.killed) {
-                try {
-                    _childexec.stdin.write('\x03\x02\x03\x1D');
-                }
-                catch (e) {
-                    console.log(e);
-                }
+                // try {
+                //     _childexec.stdin.write('\x03\x02\x03\x1D');
+                // }
+                // catch (e) {
+                //     console.log(e);
+                // }
                 _childexec.kill('SIGKILL');
                 _childexec.killed = true;
             }
@@ -852,12 +852,12 @@ export function uploadfile(code, namepath, val, socket) {
     return new Promise(async (resolve, reject) => {
         try {
             if (_childexec && !_childexec.killed) {
-                try {
-                    _childexec.stdin.write('\x03\x02\x03\x1D');
-                }
-                catch (e) {
-                    console.log(e);
-                }
+                // try {
+                //     _childexec.stdin.write('\x03\x02\x03\x1D');
+                // }
+                // catch (e) {
+                //     console.log(e);
+                // }
                 _childexec.kill('SIGKILL');
                 _childexec.killed = true;
             }
@@ -932,12 +932,12 @@ export function pythonreset(val, socket) {
     return new Promise(async (resolve, reject) => {
         try {
             if (_childexec && !_childexec.killed) {
-                try {
-                    _childexec.stdin.write('\x03\x02\x03\x1D');
-                }
-                catch (e) {
-                    console.log(e);
-                }
+                // try {
+                //     _childexec.stdin.write('\x03\x02\x03\x1D');
+                // }
+                // catch (e) {
+                //     console.log(e);
+                // }
                 _childexec.kill('SIGKILL');
                 _childexec.killed = true;
             }
@@ -1012,12 +1012,12 @@ export function getmcnty(val, socket) {
     return new Promise(async (resolve, reject) => {
         try {
             if (_childexec && !_childexec.killed) {
-                try {
-                    _childexec.stdin.write('\x03\x02\x03\x1D');
-                }
-                catch (e) {
-                    console.log(e);
-                }
+                // try {
+                //     _childexec.stdin.write('\x03\x02\x03\x1D');
+                // }
+                // catch (e) {
+                //     console.log(e);
+                // }
                 _childexec.kill('SIGKILL');
                 _childexec.killed = true;
             }
@@ -1105,12 +1105,12 @@ export function pythoncmd(code, val, socket) {
     return new Promise(async (resolve, reject) => {
         try {
             if (_childexec && !_childexec.killed) {
-                try {
-                    _childexec.stdin.write('\x03\x02\x03\x1D');
-                }
-                catch (e) {
-                    console.log(e);
-                }
+                // try {
+                //     _childexec.stdin.write('\x03\x02\x03\x1D');
+                // }
+                // catch (e) {
+                //     console.log(e);
+                // }
                 _childexec.kill('SIGKILL');
                 _childexec.killed = true;
             }