Skip to content

Commit fe8dc96

Browse files
committed
Fix: 20 - DefaultClock.running is now volatile
1 parent ab54f02 commit fe8dc96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jbotsim/DefaultClock.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
package jbotsim;
2323

2424
public class DefaultClock extends Clock implements Runnable{
25-
boolean running;
25+
volatile boolean running;
2626
Thread timer;
2727

2828
public DefaultClock(ClockManager manager) {

0 commit comments

Comments
 (0)