diff options
Diffstat (limited to 'web/service/xray.go')
| -rw-r--r-- | web/service/xray.go | 2 |
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 |
