mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
42311b9e8d
commit
b9e89868c5
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ func (t *Ticker) Start() error {
|
||||||
return t.SetRunning(true, func() {
|
return t.SetRunning(true, func() {
|
||||||
log.Info("Ticker running with period %.fs.", t.Period.Seconds())
|
log.Info("Ticker running with period %.fs.", t.Period.Seconds())
|
||||||
tick := time.Tick(t.Period)
|
tick := time.Tick(t.Period)
|
||||||
for _ = range tick {
|
for range tick {
|
||||||
if t.Running() == false {
|
if t.Running() == false {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue