(self)
| 101 | self.conn.send_bytes(data) |
| 102 | |
| 103 | def closeServer(self): |
| 104 | try: |
| 105 | if isinstance(self.conn, Connection): |
| 106 | self.conn.send([self.CLOSE_SERVER]) |
| 107 | self.conn.close() |
| 108 | except Exception as e: |
| 109 | logger.error(f'Exception occurred on cleanup: {e}') |
| 110 | |
| 111 | |
| 112 | # User registers |