MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / releaseResources

Method releaseResources

daemon/src/entity/instance/instance.ts:442–451  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

440
441 // Release resources (mainly release process-related resources)
442 releaseResources() {
443 try {
444 this.process?.destroy();
445 } catch (error: any) {
446 logger.error(`Instance ${this.instanceUuid}, Release resources error: ${error}`);
447 } finally {
448 this.process = undefined;
449 }
450 this.resetInstanceRuntimeInfo();
451 }
452
453 resetInstanceRuntimeInfo() {
454 this.info = {

Callers 2

stoppedMethod · 0.95
execFunction · 0.80

Calls 3

errorMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected