Closes this socket
(self)
| 337 | return cast(List[SuperSocket], ready_sockets) |
| 338 | |
| 339 | def close(self): |
| 340 | # type: () -> None |
| 341 | """Closes this socket""" |
| 342 | if self.closed: |
| 343 | return |
| 344 | super(PythonCANSocket, self).close() |
| 345 | self.can_iface.shutdown() |
| 346 | |
| 347 | |
| 348 | CANSocket = PythonCANSocket |