We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 210e97f commit d995008Copy full SHA for d995008
ble_serial/ports/windows_com0com.py
@@ -25,7 +25,7 @@ async def run_loop(self):
25
pool = ThreadPoolExecutor(max_workers=2)
26
rx = self.loop.run_in_executor(pool, self._run_rx)
27
tx = self.loop.run_in_executor(pool, self._run_tx)
28
- return asyncio.gather(rx, tx)
+ await asyncio.gather(rx, tx)
29
30
def _run_tx(self):
31
while self.alive and self.serial.is_open:
@@ -57,4 +57,5 @@ def stop_loop(self):
57
def remove(self):
58
if hasattr(self, 'serial'):
59
self.serial.close()
60
+ self.stop_loop()
61
0 commit comments