Parent Directory | Revision Log | Patch
revision 1.21 by audriusa, Fri Sep 16 18:44:56 2005 UTC | revision 1.22 by mark, Wed Nov 2 21:30:41 2005 UTC | |
---|---|---|
# | Line 68 public class Timer | Line 68 public class Timer |
68 | running = true; | running = true; |
69 | try | try |
70 | { | { |
71 | sleep(initialDelay); | try |
72 | { | |
73 | sleep(initialDelay); | |
74 | } | |
75 | catch (InterruptedException e) | |
76 | { | |
77 | if (!running) | |
78 | return; | |
79 | } | |
80 | ||
81 | queueEvent(); | queueEvent(); |
82 | ||
# | Line 81 public class Timer | Line 89 public class Timer |
89 | } | } |
90 | catch (InterruptedException e) | catch (InterruptedException e) |
91 | { | { |
92 | return; | if (!running) |
93 | break; | |
94 | } | } |
95 | queueEvent(); | queueEvent(); |
96 | ||
# | Line 93 public class Timer | Line 102 public class Timer |
102 | } | } |
103 | running = false; | running = false; |
104 | } | } |
105 | catch (Exception e) | finally |
106 | { | { |
107 | // The timer is no longer running. | // The timer is no longer running. |
108 | running = false; | running = false; |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |