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