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:
Blake Harnden 2020-02-26 15:39:37 -08:00
parent e1c9155ba7
commit 20e3fbc7d9

View file

@ -952,8 +952,7 @@ class CoreHandler(socketserver.BaseRequestHandler):
daemon=True,
)
thread.start()
# allow time for session creation
time.sleep(0.25)
thread.join()
if message.flags & MessageFlags.STRING.value:
new_session_ids = set(self.coreemu.sessions.keys())