MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / stopXcodeStateWatcher

Function stopXcodeStateWatcher

src/utils/xcode-state-watcher.ts:251–267  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249 * Stop the xcuserstate watcher
250 */
251export async function stopXcodeStateWatcher(): Promise<void> {
252 if (state.debounceTimer) {
253 clearTimeout(state.debounceTimer);
254 state.debounceTimer = null;
255 }
256
257 if (state.watcher) {
258 await state.watcher.close();
259 state.watcher = null;
260 state.watchedPath = null;
261 state.executor = null;
262 state.cwd = null;
263 state.projectPath = null;
264 state.workspacePath = null;
265 log('info', '[xcode-watcher] Watcher stopped');
266 }
267}
268
269/**
270 * Check if the watcher is currently running

Callers 2

runMcpShutdownFunction · 0.90

Calls 2

logFunction · 0.90
closeMethod · 0.65

Tested by

no test coverage detected