diff --git a/backend/internal/ktmtrainbot/backgroundbookingjob.go b/backend/internal/ktmtrainbot/backgroundbookingjob.go index 1f1a372..7fecc06 100644 --- a/backend/internal/ktmtrainbot/backgroundbookingjob.go +++ b/backend/internal/ktmtrainbot/backgroundbookingjob.go @@ -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