6
0
mirror of https://github.com/FirebirdSQL/firebird-qa.git synced 2025-01-22 13:33:07 +01:00

Merge pull request #25 from FirebirdSQL/work/gh-23

Fixed bug #23 : QA could hung when stopping trace session
This commit is contained in:
Pavel Zotov 2024-08-06 15:34:59 +03:00 committed by GitHub
commit 5061dc93c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1347,8 +1347,6 @@ class TraceSession:
def __exit__(self, exc_type, exc_value, traceback) -> None: def __exit__(self, exc_type, exc_value, traceback) -> None:
time.sleep(2) time.sleep(2)
session = self.output.pop(0) session = self.output.pop(0)
with self.act.connect_server() as srv:
srv.trace.stop(session_id=session)
self.stop_event.set() self.stop_event.set()
self.trace_thread.join(5.0) self.trace_thread.join(5.0)
if self.trace_thread.is_alive(): if self.trace_thread.is_alive():