diff --git a/pominal.go b/pominal.go index bcd26b4..ccc011e 100644 --- a/pominal.go +++ b/pominal.go @@ -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 {