MCPcopy Create free account
hub / github.com/NanmiCoder/MediaCrawler / sync_cleanup

Method sync_cleanup

tools/cdp_browser.py:54–58  ·  view source on GitHub ↗

Synchronous cleanup function for atexit

()

Source from the content-addressed store, hash-verified

52 return
53
54 def sync_cleanup():
55 """Synchronous cleanup function for atexit"""
56 if self.launcher and self.launcher.browser_process:
57 utils.logger.info("[CDPBrowserManager] atexit: Cleaning up browser process")
58 self.launcher.cleanup()
59
60 # Register atexit cleanup
61 atexit.register(sync_cleanup)

Callers

nothing calls this directly

Calls 1

cleanupMethod · 0.45

Tested by

no test coverage detected