Close the socket connection.
(self)
| 177 | raise DirtyError(f"Unknown response type: {msg_type}") |
| 178 | |
| 179 | def _close_socket(self): |
| 180 | """Close the socket connection.""" |
| 181 | if self._sock is not None: |
| 182 | try: |
| 183 | self._sock.close() |
| 184 | except Exception: |
| 185 | pass |
| 186 | self._sock = None |
| 187 | |
| 188 | def close(self): |
| 189 | """Close the sync connection.""" |