[PR #3329] [MERGED] Fixed Xray restarting after being manually stopped #5396

Closed
opened 2026-10-31 20:46:41 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/3329
Author: @fgsfds
Created: 8/7/2025
Status: ✅ Merged
Merged: 8/7/2025
Merged by: @fgsfds

Base: main ← Head: xray_manual_stop


📝 Commits (2)

  • a72c86d fixed xray restarting after being manually stopped
  • ea6acda renamed func

📊 Changes

4 files changed (+33 additions, -10 deletions)

View changed files

📝 web/html/index.html (+0 -3)
📝 web/job/check_xray_running_job.go (+1 -1)
📝 web/service/server.go (+0 -1)
📝 web/service/xray.go (+32 -5)

📄 Description

What is the pull request?

Closes #2896

Cron job restarts Xray even if it was manually stopped by the user.

Added check if Xray was stopped manually and prevent cron from restarting it.

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/3329 **Author:** [@fgsfds](https://github.com/fgsfds) **Created:** 8/7/2025 **Status:** ✅ Merged **Merged:** 8/7/2025 **Merged by:** [@fgsfds](https://github.com/fgsfds) **Base:** `main` ← **Head:** `xray_manual_stop` --- ### 📝 Commits (2) - [`a72c86d`](https://github.com/MHSanaei/3x-ui/commit/a72c86d0f3a4c6a35db0b880c6d114d6be7c820b) fixed xray restarting after being manually stopped - [`ea6acda`](https://github.com/MHSanaei/3x-ui/commit/ea6acda4517b3171f16d55b1b65ba8555a4763d2) renamed func ### 📊 Changes **4 files changed** (+33 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `web/html/index.html` (+0 -3) 📝 `web/job/check_xray_running_job.go` (+1 -1) 📝 `web/service/server.go` (+0 -1) 📝 `web/service/xray.go` (+32 -5) </details> ### 📄 Description ## What is the pull request? Closes #2896 Cron job restarts Xray even if it was manually stopped by the user. Added check if Xray was stopped manually and prevent cron from restarting it. ## Which part of the application is affected by the change? - [ ] Frontend - [x] Backend ## Type of Changes - [x] Bug fix - [ ] New feature - [ ] Refactoring - [ ] Other --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:46:41 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5396
No description provided.