(self)
| 1837 | self._test = test |
| 1838 | |
| 1839 | def stop(self): |
| 1840 | try: |
| 1841 | if self._s2 and self._s2.fileno() != -1: |
| 1842 | try: |
| 1843 | self._s2.send(b'stop') |
| 1844 | except OSError: |
| 1845 | pass |
| 1846 | finally: |
| 1847 | super().stop() |
| 1848 | self._sock.close() |
| 1849 | self._s1.close() |
| 1850 | self._s2.close() |
| 1851 | |
| 1852 | def run(self): |
| 1853 | self._sock.setblocking(False) |