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

Method closeServer

interface/vstream/python/vsi_audio.py:188–199  ·  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

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

Callers 1

cleanupFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected