Add cleanup method for the Meek class to kill any meek-client subprocesses once done. Hide stderr from the CLI printed output

This commit is contained in:
Miguel Jacq 2021-10-25 10:44:38 +11:00
parent c81862130b
commit 3a715346af
No known key found for this signature in database
GPG key ID: EEA4341C6D97A0B6
3 changed files with 43 additions and 2 deletions

View file

@ -264,6 +264,7 @@ class MoatThread(QtCore.QThread):
]
},
)
self.meek.cleanup()
if r.status_code != 200:
self.common.log("MoatThread", "run", f"status_code={r.status_code}")
self.bridgedb_error.emit()
@ -316,6 +317,7 @@ class MoatThread(QtCore.QThread):
]
},
)
self.meek.cleanup()
if r.status_code != 200:
self.common.log("MoatThread", "run", f"status_code={r.status_code}")
self.bridgedb_error.emit()