MCPcopy Create free account
hub / github.com/FlashpointProject/launcher / removeService

Function removeService

src/back/util/misc.ts:296–304  ·  view source on GitHub ↗
(state: BackState, processId: string)

Source from the content-addressed store, hash-verified

294}
295
296export async function removeService(state: BackState, processId: string): Promise<void> {
297 const service = state.services.get(processId);
298 if (service) {
299 await waitForServiceDeath(service);
300 state.services.delete(processId);
301 state.apiEmitters.services.onServiceRemove.fire(service);
302 state.socketServer.broadcast(BackOut.SERVICE_REMOVED, processId);
303 }
304}
305
306export async function waitForServiceDeath(service: ManagedChildProcess) : Promise<void> {
307 if (service.getState() !== ProcessState.STOPPED) {

Callers 4

registerRequestCallbacksFunction · 0.90
runGameServiceFunction · 0.90
changeServerFactoryFunction · 0.90
createApiFactoryFunction · 0.90

Calls 5

waitForServiceDeathFunction · 0.85
getMethod · 0.80
deleteMethod · 0.80
broadcastMethod · 0.80
fireMethod · 0.65

Tested by

no test coverage detected