fix: initialize channel before the ticker
This commit is contained in:
parent
c8a1d0adfa
commit
1be999c8b6
1 changed files with 1 additions and 1 deletions
|
@ -74,9 +74,9 @@ func NewPominal(w, s, l float64, m int) Pominal {
|
|||
// Run Pominal
|
||||
func (p *Pominal) Run(infoUI, timerUI *tview.TextView) {
|
||||
|
||||
p.stopChan = make(chan struct{})
|
||||
p.UpdateSession(infoUI)
|
||||
t := time.NewTicker(1 * time.Second)
|
||||
p.stopChan = make(chan struct{})
|
||||
|
||||
infinite:
|
||||
for {
|
||||
|
|
Loading…
Reference in a new issue