diff --git a/api-test/backend/src/main/java/io/metersphere/api/jmeter/MsDebugListener.java b/api-test/backend/src/main/java/io/metersphere/api/jmeter/MsDebugListener.java index 01f8831199..b562576eed 100644 --- a/api-test/backend/src/main/java/io/metersphere/api/jmeter/MsDebugListener.java +++ b/api-test/backend/src/main/java/io/metersphere/api/jmeter/MsDebugListener.java @@ -102,7 +102,6 @@ public class MsDebugListener extends AbstractListenerElement implements SampleLi dto.setToReport(this.getName()); LoggerUtil.debug("send. " + this.getName()); WebSocketUtil.sendMessageSingle(dto); - WebSocketUtil.onClose(this.getName()); PoolExecBlockingQueueUtil.offer(this.getName()); } diff --git a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue index 4bfa748e66..89a730ec1b 100644 --- a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue +++ b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue @@ -1034,6 +1034,7 @@ export default { this.debugLoading = false; this.message = "stop"; this.stopDebug = "stop"; + this.messageWebSocket.close(); this.reload(); } },