Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
华泰证券在登入的过程中会出现死锁,这个死锁问题在单CPU的平台更容易出现 出现问题的步骤: 1,自动输入用户名和密码 2,调用self._app.top_window().wait_not("exists", 100),等待登入窗口消失,CPU进入睡眠,CPU调度去干别的事情了 3,华泰证券登入成功,登入窗口消失,主窗口出现 4,CPU调度回来,继续执行self._app.top_window().wait_not("exists", 100),问题是,现在的top_window()不再是登入窗口,而是主窗口,程序一直死等主窗口消失。死锁了 修复办法: 不是dengd登入窗口消失,而是等待主窗口变成visible Signed-off-by: Xiaowei Wang <[email protected]>
- Loading branch information