diff --git a/channels/verifiychecker.go b/channels/verifiychecker.go index 6f26850..f647725 100644 --- a/channels/verifiychecker.go +++ b/channels/verifiychecker.go @@ -35,7 +35,7 @@ func CheckUnverifiedUser(ticker *time.Ticker, quitChannel <-chan struct{}, group if err != nil { log.Println("Error while getting the Group in the verifychecker for id " + strconv.FormatInt(user.GroupID, 10)) log.Println(err) - return + continue } groups[user.GroupID] = group @@ -47,7 +47,7 @@ func CheckUnverifiedUser(ticker *time.Ticker, quitChannel <-chan struct{}, group if err != nil { log.Println("Error while getting the User in the verifychecker for id " + strconv.Itoa(user.UserID)) log.Println(err) - return + continue } users[user.UserID] = user_db @@ -72,7 +72,7 @@ func CheckUnverifiedUser(ticker *time.Ticker, quitChannel <-chan struct{}, group ChatID: user.GroupID, MessageID: user.MessageID, }) - return + continue } kickMessage := groups[user.GroupID].UserKickMessage @@ -123,6 +123,7 @@ func CheckUnverifiedUser(ticker *time.Ticker, quitChannel <-chan struct{}, group case <-quitChannel: ticker.Stop() + log.Println("ERROR - VerifyChecker channel stopped!!!") return } }