Actions
Bug #1155
closedWTimer: interval is decreased automatically after the first tick in HTML-version
Start date:
02/04/2012
Due date:
% Done:
0%
Estimated time:
Description
Hello!
I used this code:
Wt::WTimer *timer = new Wt::WTimer();
timer->setInterval(10 * 1000);
timer->start();
and load it in HTML version.
First update occurred in 10 seconds, but subsequent updates
happened one after the other, with a small interval, I can't measure.
In generated HTML:
<meta http-equiv='refresh' content='1' />
Wt 3.2.0
Files
Updated by Koen Deforche almost 13 years ago
Hey,
I tried to reproduce this with the mission example, but that seems to work properly with javascript disabled for me. Can you reproduce it with that example or if not, what do you do differently ?
Regards,
koen
Updated by Koen Deforche almost 13 years ago
- Status changed from New to Feedback
Updated by Boris Nagaev almost 13 years ago
Hello!
Here is simple example of this bug.
I have tried it with Wt 3.1.10 and Wt 3.2.0.
First update occurs in 3 seconds, subsequent ones --- in 1 second.
Updated by Koen Deforche almost 13 years ago
- Status changed from Feedback to Resolved
- Assignee set to Koen Deforche
- Target version set to 3.2.1
Hey,
Got it now. It had to do with the order of start() and timeout().connect(). I've fixed it in my git copy and will push this to git later.
Regards,
koen
Actions