Fix(booking-job): Ensure all refresh cancelled
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good

This commit is contained in:
2022-10-27 01:04:22 +08:00
parent 190f1f88cb
commit a6b2ffa1e8

View File

@@ -342,6 +342,7 @@ func chooseAndMakePayment(timerCtx context.Context, creditCardType, creditCard,
select { select {
case <-timerCtx.Done(): case <-timerCtx.Done():
browser.MustClose() browser.MustClose()
cancelRefresh()
return false return false
default: default:
} }