(self)
| 155 | self.initStop() |
| 156 | |
| 157 | def stopThread(self): |
| 158 | super(singleAPI, self).stopThread() |
| 159 | s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |
| 160 | try: |
| 161 | s.connect((BMConfigParser().get('bitmessagesettings', 'apiinterface'), BMConfigParser().getint( |
| 162 | 'bitmessagesettings', 'apiport'))) |
| 163 | s.shutdown(socket.SHUT_RDWR) |
| 164 | s.close() |
| 165 | except: |
| 166 | pass |
| 167 | |
| 168 | def run(self): |
| 169 | port = BMConfigParser().getint('bitmessagesettings', 'apiport') |
no test coverage detected