#31 fix synchronized error
authorKevin Lamonte <kevin.lamonte@gmail.com>
Sat, 7 Apr 2018 16:39:25 +0000 (12:39 -0400)
committerKevin Lamonte <kevin.lamonte@gmail.com>
Sat, 7 Apr 2018 16:39:25 +0000 (12:39 -0400)
src/jexer/TApplication.java

index 34f1559007090b31eef65a4d79be9288ed54dec7..9fa64d0703ae5d973453db0abb998661eb76fe20 100644 (file)
@@ -1205,7 +1205,8 @@ public class TApplication implements Runnable {
                     keepTimers.add(timer);
                 }
             }
-            timers = keepTimers;
+            timers.clear();
+            timers.addAll(keepTimers);
         }
 
         // Call onIdle's