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

fix crash bug #214

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix crash bug #214

wants to merge 1 commit into from

Conversation

mdre3a
Copy link

@mdre3a mdre3a commented Dec 14, 2022

fix this bug:
goroutine 97 [running]:
panic: runtime error: index out of range [1] with length 0
x-ui/xray.(*process).GetTraffic(0xc0006be0f0?, 0x1)
x-ui/xray/process.go:265 +0x7e9
x-ui/web/service.(*XrayService).GetXrayTraffic(0x40da7d?)
x-ui/web/service/xray.go:88 +0x4e
x-ui/web/job.(*XrayTrafficJob).Run(0x1cf6118)
x-ui/web/job/xray_traffic_job.go:21 +0x5f
github.com/robfig/cron/v3.(*Cron).startJob.func1()
github.com/robfig/cron/v3@v3.0.1/cron.go:312 +0x6a
created by github.com/robfig/cron/v3.(*Cron).startJob
github.com/robfig/cron/v3@v3.0.1/cron.go:310 +0xad

@kilvn
Copy link

kilvn commented Nov 29, 2023

@FranzKafkaYu

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

Successfully merging this pull request may close these issues.

None yet

2 participants