Skip to content

Commit c09cbe9

Browse files
committed
[webcanv] reduce timeout in slow mode
1000 ms is too big
1 parent afb4c9f commit c09cbe9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

gui/webgui6/src/TWebCanvas.cxx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,20 @@ class TWebCanvasTimer : public TTimer {
7979
{
8080
fSlow = slow;
8181
fSlowCnt = 0;
82-
SetTime(slow ? 1000 : 10);
82+
SetTime(slow ? 50 : 10);
8383
}
8484

8585
/// used to send control messages to clients
8686
void Timeout() override
8787
{
88-
if (fProcessing || fCanv.fProcessingData) return;
88+
if (fProcessing || fCanv.fProcessingData)
89+
return;
8990
fProcessing = kTRUE;
9091
Bool_t res = fCanv.CheckDataToSend();
9192
fProcessing = kFALSE;
9293
if (res) {
9394
fSlowCnt = 0;
94-
} else if (++fSlowCnt > 10 && !IsSlow()) {
95+
} else if (++fSlowCnt > 100 && !IsSlow()) {
9596
SetSlow(kTRUE);
9697
}
9798
}

0 commit comments

Comments
 (0)