From: Kevin Lamonte Date: Sat, 7 Apr 2018 16:39:25 +0000 (-0400) Subject: #31 fix synchronized error X-Git-Tag: fanfix-3.0.1^2~210 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=e394cb85acdf062fb3f0d87819230acfbffa1ce0;p=fanfix.git #31 fix synchronized error --- diff --git a/src/jexer/TApplication.java b/src/jexer/TApplication.java index 34f1559..9fa64d0 100644 --- a/src/jexer/TApplication.java +++ b/src/jexer/TApplication.java @@ -1205,7 +1205,8 @@ public class TApplication implements Runnable { keepTimers.add(timer); } } - timers = keepTimers; + timers.clear(); + timers.addAll(keepTimers); } // Call onIdle's