MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / close

Method close

core/xtream_codes.py:458–464  ·  view source on GitHub ↗

Close the session and cleanup resources

(self)

Source from the content-addressed store, hash-verified

456 raise
457
458 def close(self):
459 """Close the session and cleanup resources"""
460 if hasattr(self, 'session') and self.session:
461 try:
462 self.session.close()
463 except Exception as e:
464 logger.debug(f"Error closing XC session: {e}")
465
466 def __enter__(self):
467 """Enter the context manager"""

Callers 9

__exit__Method · 0.95
__del__Method · 0.95
WebsocketProviderFunction · 0.45
stream_viewFunction · 0.45
stream_generatorFunction · 0.45
_perform_ip_lookupFunction · 0.45
handleMethod · 0.45
connectMethod · 0.45
_close_connectionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected