Fix(booking-slot): Check correct context for exit
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user