MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / removePort

Function removePort

src/controller/main.controller.js:83–90  ·  view source on GitHub ↗
(port)

Source from the content-addressed store, hash-verified

81}
82
83async function removePort(port) {
84 const id = parseViewName(port.name).id;
85 const del = await controllerPool.has(id) && (await controllerPool.get(id)).removePort(port);
86 if (del && !(await controllerPool.get(id)).persistent) {
87 // last port removed from controller, delete controller
88 await controllerPool.delete(id);
89 }
90}
91
92class ControllerMap {
93 constructor() {

Callers

nothing calls this directly

Calls 5

parseViewNameFunction · 0.90
removePortMethod · 0.80
hasMethod · 0.45
getMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected