Project

General

Profile

Actions

Bug #1155

closed

WTimer: interval is decreased automatically after the first tick in HTML-version

Added by Boris Nagaev almost 13 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target 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

timer.cpp (570 Bytes) timer.cpp Boris Nagaev, 02/06/2012 02:11 PM
Actions #1

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

Actions #2

Updated by Koen Deforche almost 13 years ago

  • Status changed from New to Feedback
Actions #3

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.

Actions #4

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 #5

Updated by Koen Deforche over 12 years ago

  • Status changed from Resolved to Closed

Fixed in 3.2.1

Actions

Also available in: Atom PDF