Changeset 799


Ignore:
Timestamp:
01/31/14 16:36:26 (10 years ago)
Author:
jts21
Message:

Some changes to JSItem (an attempt to stop multiple identical threads being started)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/items/JSItem.java

    r785 r799  
    189189                        if(thread != null) {
    190190                                thread.interrupt();
     191                                try {
     192                        thread.join();
     193                } catch (InterruptedException e) {
     194                        e.printStackTrace();
     195                }
    191196                                thread = null;
    192197                        }
     
    194199               
    195200                public void start() {
     201                        if(thread != null) {
     202                                this.kill();
     203                        }
    196204                        thread = new Thread(new Runnable() {
    197205                        @Override
Note: See TracChangeset for help on using the changeset viewer.