adding fixes on closing tunnel

This commit is contained in:
Adolfo Gómez García 2021-07-03 12:58:26 +02:00
parent 09e88b60f5
commit d7886a1281

View File

@ -28,6 +28,7 @@ class UdsApplication(QtWidgets.QApplication):
def closeTunnels(self) -> None:
logger.debug('Closing remaining tunnels')
for tunnel in self.tunnels:
logger.debug('Checking %s - "%s"', tunnel, tunnel.poll())
if tunnel.poll() is None: # Running
logger.info('Found running tunnel %s, closing it', tunnel.pid)
tunnel.kill()