Close the connection to the server and request server shutdown. Returns: None
(self)
| 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 |