forked from shaba/openuds
adding fixes on closing tunnel
This commit is contained in:
parent
09e88b60f5
commit
d7886a1281
@ -28,6 +28,7 @@ class UdsApplication(QtWidgets.QApplication):
|
|||||||
def closeTunnels(self) -> None:
|
def closeTunnels(self) -> None:
|
||||||
logger.debug('Closing remaining tunnels')
|
logger.debug('Closing remaining tunnels')
|
||||||
for tunnel in self.tunnels:
|
for tunnel in self.tunnels:
|
||||||
|
logger.debug('Checking %s - "%s"', tunnel, tunnel.poll())
|
||||||
if tunnel.poll() is None: # Running
|
if tunnel.poll() is None: # Running
|
||||||
logger.info('Found running tunnel %s, closing it', tunnel.pid)
|
logger.info('Found running tunnel %s, closing it', tunnel.pid)
|
||||||
tunnel.kill()
|
tunnel.kill()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user