Fix(booking-slot): Check correct context for exit
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good

This commit is contained in:
2022-09-30 00:19:07 +08:00
parent 6aa67554ee
commit bbbacfffe9

View File

@@ -231,7 +231,7 @@ func (env *Env) startBooking(job *Booking, username string, password string, cre
select {
case page = <-pageChan:
log.Println("Page received.")
case <-getBookingSlotCtx.Done():
case <-timerCtx.Done():
log.Println("Context cancelled.")
browser.MustClose()
return false