forgot to stop ticket
This commit is contained in:
@@ -32,6 +32,7 @@ func (u *UpdateChecker) Start(ctx context.Context, interval time.Duration) {
|
|||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
|
t.Stop()
|
||||||
return
|
return
|
||||||
case <-t.C:
|
case <-t.C:
|
||||||
u.checkForUpdate()
|
u.checkForUpdate()
|
||||||
|
|||||||
Reference in New Issue
Block a user