MCPcopy Create free account
hub / github.com/ARM-software/AVH / closeServer

Method closeServer

interface/vstream/python/vsi_video.py:186–197  ·  view source on GitHub ↗

Close the connection to the server and request server shutdown. Returns: None

(self)

Source from the content-addressed store, hash-verified

184 self.conn.send_bytes(data)
185
186 def closeServer(self):
187 """
188 Close the connection to the server and request server shutdown.
189 Returns:
190 None
191 """
192 try:
193 if isinstance(self.conn, Connection):
194 self.conn.send([self.CLOSE_SERVER])
195 self.conn.close()
196 except Exception as e:
197 logger.error(f'Exception occurred on cleanup: {e}')
198
199
200

Callers 1

cleanupFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected