From b031e0aa3c7efbd037303bbab323da6164795887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Sat, 3 Jul 2021 13:02:34 +0200 Subject: [PATCH] adding fixes on closing tunnel --- client-py3/full/src/UDSClientLauncher.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client-py3/full/src/UDSClientLauncher.py b/client-py3/full/src/UDSClientLauncher.py index 3ee9b985..e7bd2e6d 100644 --- a/client-py3/full/src/UDSClientLauncher.py +++ b/client-py3/full/src/UDSClientLauncher.py @@ -35,12 +35,14 @@ class UdsApplication(QtWidgets.QApplication): def event(self, evnt: QtCore.QEvent) -> bool: if evnt.type() == QtCore.QEvent.FileOpen: - # First, remove all finished tunnel processed from check queue fe = typing.cast(QtGui.QFileOpenEvent, evnt) logger.debug('Got url: %s', fe.url().url()) fe.accept() logger.debug('Spawning %s', self.path) - subprocess.Popen([self.path, fe.url().url()]) + # First, remove all finished tunnel processed from check queue + self.cleanTunnels() + # And now add a new one + self.tunnels.append(subprocess.Popen([self.path, fe.url().url()])) return super().event(evnt)