changed to mux so I can run sequentially.
This commit is contained in:
@ -116,8 +116,9 @@ func (a *App) MyAnimeListLogin() {
|
||||
}
|
||||
|
||||
func handleMyAnimeListCallback(wg *sync.WaitGroup, verifier *CodeVerifier) {
|
||||
srv := &http.Server{Addr: ":6734"}
|
||||
http.HandleFunc("/callback", func(w http.ResponseWriter, r *http.Request) {
|
||||
mux := http.NewServeMux()
|
||||
srv := &http.Server{Addr: ":6734", Handler: mux}
|
||||
mux.HandleFunc("/callback", func(w http.ResponseWriter, r *http.Request) {
|
||||
select {
|
||||
case <-myAnimeListCtxShutdown.Done():
|
||||
fmt.Println("Shutting down...")
|
||||
|
Reference in New Issue
Block a user