diff --git a/Bench4Q-Web/src/main/webapp/script/RecordScript/RecordScriptServer.js b/Bench4Q-Web/src/main/webapp/script/RecordScript/RecordScriptServer.js index 39043ed9..ff2468a7 100644 --- a/Bench4Q-Web/src/main/webapp/script/RecordScript/RecordScriptServer.js +++ b/Bench4Q-Web/src/main/webapp/script/RecordScript/RecordScriptServer.js @@ -57,18 +57,19 @@ function stopRecording() { "stop record server error:" + data.failedMessage); $('#stopServer').attr('disabled', true); $('#startServer').attr('disabled', false); + } else { $('#stopServer').attr('disabled', true); $('#scriptInfo3').text( $.i18n.prop("stoprecord") ); + stopServer(); } }, "json"); } else { $('#scriptInfo3').text("record script server has not started"); } - stopServer(); } function stopServer() {