(port)
| 81 | } |
| 82 | |
| 83 | async 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 | |
| 92 | class ControllerMap { |
| 93 | constructor() { |
nothing calls this directly
no test coverage detected