Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'web/service/xray.go')
-rw-r--r--web/service/xray.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/service/xray.go b/web/service/xray.go
index 7233cec5..82d1cc3f 100644
--- a/web/service/xray.go
+++ b/web/service/xray.go
@@ -185,7 +185,7 @@ func (s *XrayService) RestartXray(isForce bool) error {
return err
}
- if p != nil && p.IsRunning() {
+ if s.IsXrayRunning() {
if !isForce && p.GetConfig().Equals(xrayConfig) {
logger.Debug("It does not need to restart xray")
return nil