Skip to content

Commit

Permalink
Merge pull request #3042 from ales-erjavec/fixes/vizrank-race-condition
Browse files Browse the repository at this point in the history
[FIX] VizRank: Fix race condition in `toggle`
  • Loading branch information
markotoplak authored May 29, 2018
2 parents 42969bb + 12bdb21 commit 9caa6b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Orange/widgets/visualize/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,9 @@ def toggle(self):
else:
self.button.setText("Continue")
self._thread.quit()
# Need to sync state (the worker must read the keep_running
# state and stop) for reliable restart.
self._thread.wait()

def before_running(self):
"""Code that is run before running vizrank in its own thread"""
Expand Down

0 comments on commit 9caa6b7

Please sign in to comment.