Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebviewWidget: avoid hangs with webengine
Waiting for execution to complete was handled in an unsafe way. As all js executions set the same flag when they were done, it was possible that multiple executions set the flag before the thread waiting for them could have noticed it. As a result, if two or more executions ended at the same time the first waiting thread to notice that would clear the flag and remaining threads would keep waiting indefinetly. Should fix ocasionally stalled PyQt5 builds on travis.
- Loading branch information
Showing
2 changed files
with
37 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters