sdk/host/src/main/java/org/apache/teaclave/javasdk/host/MockInSvmEnclave.java [148:156]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @Override
    public void destroy() throws EnclaveDestroyingException {
        // destroyToken will wait for all ongoing enclave invocations finished.
        if (this.getEnclaveContext().getEnclaveToken().destroyToken()) {
            try (MetricTraceContext trace = new MetricTraceContext(
                    this.getEnclaveInfo(),
                    MetricTraceContext.LogPrefix.METRIC_LOG_ENCLAVE_DESTROYING_PATTERN)) {
                // interrupt enclave services' recycler firstly.
                this.getEnclaveContext().getEnclaveServicesRecycler().interruptServiceRecycler();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



sdk/host/src/main/java/org/apache/teaclave/javasdk/host/TeeSdkEnclave.java [166:174]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @Override
    public void destroy() throws EnclaveDestroyingException {
        // destroyToken will wait for all ongoing enclave invocations finished.
        if (this.getEnclaveContext().getEnclaveToken().destroyToken()) {
            try (MetricTraceContext trace = new MetricTraceContext(
                    this.getEnclaveInfo(),
                    MetricTraceContext.LogPrefix.METRIC_LOG_ENCLAVE_DESTROYING_PATTERN)) {
                // interrupt enclave services' recycler firstly.
                this.getEnclaveContext().getEnclaveServicesRecycler().interruptServiceRecycler();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



