Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

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/[email protected]/cron.go:312 +0x6a
created by github.com/robfig/cron/v3.(*Cron).startJob
github.com/robfig/cron/[email protected]/cron.go:310 +0xad

@kilvn
Copy link

kilvn commented Nov 29, 2023

@FranzKafkaYu

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants