Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hold the loop #17

Closed
TAMILVIP007 opened this issue Jan 28, 2023 · 1 comment
Closed

Hold the loop #17

TAMILVIP007 opened this issue Jan 28, 2023 · 1 comment

Comments

@TAMILVIP007
Copy link

TAMILVIP007 commented Jan 28, 2023

panic: runtime error: index out of range [1] with length 1

goroutine 65 [running]:
AnimeUploader/plugins.CheckAnimeUpdate()
        D:/GoUploader/plugins/cron.go:29 +0x1b8
created by main.main
        D:/GoUploader/main.go:9 +0x2a

hold the mail loop instead of exiting if panicked

@AmarnathCJD AmarnathCJD added this to the Fix Known BUGS milestone Jan 29, 2023
@TAMILVIP007
Copy link
Author

func main() {
	bot := plugins.StartBot()
	go func() {
		defer func() {
			if r := recover(); r != nil {
				fmt.Println("Recovered from panic:", r)
			}
		}()
		plugins.CheckAnimeUpdate()
	}()
	bot.Idle()
}

workaround which i used rn

AmarnathCJD pushed a commit that referenced this issue Feb 4, 2023
… Handle MTPROTO errors instead of infinite reconnect, string session format changed to include AppID, AppID no longer mandatory while using sessionfile or stringsession, enhanced log strings, error strings, Fix huge panic on tcp connection break, fixed file upload bugs.
AmarnathCJD pushed a commit that referenced this issue Feb 4, 2023
… Handle MTPROTO errors instead of infinite reconnect, string session format changed to include AppID, AppID no longer mandatory while using sessionfile or stringsession, enhanced log strings, error strings, Fix huge panic on tcp connection break, fixed file upload bugs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants