Skip to content

Commit

Permalink
switched from Thread.stop() to Thread.interrupt()
Browse files Browse the repository at this point in the history
  • Loading branch information
fracpete committed Oct 31, 2024
1 parent 78e4e7a commit d520ce9
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

/**
/*
* AbstractThreadedExplorerTab.java
* Copyright (C) 2012-2015 University of Waikato, Hamilton, New Zealand
* Copyright (C) 2012-2024 University of Waikato, Hamilton, New Zealand
*/
package meka.gui.explorer;

Expand All @@ -25,7 +25,6 @@
* Supports long-running tasks in a separate thread.
*
* @author fracpete (fracpete at waikato dot ac dot nz)
* @version $Revision$
*/
public abstract class AbstractThreadedExplorerTab
extends AbstractExplorerTab {
Expand Down Expand Up @@ -85,7 +84,7 @@ public void run() {
m_Owner.executionFinished(null);
else
m_Owner.executionFinished(t);
m_Owner.executionFinalized();
m_Owner.executionFinalized();
}
};
SwingUtilities.invokeLater(r);
Expand Down Expand Up @@ -138,7 +137,7 @@ public void start(Runnable run) {
*/
public void stop() {
if (m_Task != null) {
m_Task.stop();
m_Task.interrupt();
}
}

Expand Down

0 comments on commit d520ce9

Please sign in to comment.