modify execute python script handling for old gui to wait for script to complete before looking for new session to avoid possible race conditions
This commit is contained in:
parent
e1c9155ba7
commit
20e3fbc7d9
1 changed files with 1 additions and 2 deletions
|
@ -952,8 +952,7 @@ class CoreHandler(socketserver.BaseRequestHandler):
|
||||||
daemon=True,
|
daemon=True,
|
||||||
)
|
)
|
||||||
thread.start()
|
thread.start()
|
||||||
# allow time for session creation
|
thread.join()
|
||||||
time.sleep(0.25)
|
|
||||||
|
|
||||||
if message.flags & MessageFlags.STRING.value:
|
if message.flags & MessageFlags.STRING.value:
|
||||||
new_session_ids = set(self.coreemu.sessions.keys())
|
new_session_ids = set(self.coreemu.sessions.keys())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue