Actions
Bug #5542
open
W(
PA
/timer off seems not closing a timer correctly
Bug #5542:
/timer off seems not closing a timer correctly
Start date:
04/12/2022
Due date:
% Done:
0%
Estimated time:
Operative System:
All
Regression:
No
Description
Hello,
I just saw that /timerNAME off doesn't closing that timer correctly.
Reproduce Code :
; Execute "/start_test ANYTHING" and then check that it keeps triggering more than 1 time the /check command, as it should only trigger that 1 time.
alias start_test {
echo -s /start_test: $1
var %md5 = $md5($1,0)
.timer[ONE_ $+ %md5 $+ _TEST] 0 10 check $1
sockclose test
sockopen -e test google.com 443
}
alias check {
echo -s /check: $1
var %md5 = $md5($1,0)
.timer[ONE_ $+ %md5 $+ _TEST] off
if ($sock(test)) { .timer[ONE_ $+ %md5 $+ _TEST] 0 10 check $1 | cmd $1 status | return }
echo -s Socket test is closed.
}
alias cmd { echo -a /cmd: $1 }
- Thanks!
Files
Actions