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:
authorMHSanaei <33454419+MHSanaei@users.noreply.github.com>2023-03-23 22:52:50 +0300
committerMHSanaei <33454419+MHSanaei@users.noreply.github.com>2023-03-23 22:52:50 +0300
commit5ef8a5a37ec7e6b7df710fa61b0324ab5a6617ab (patch)
tree8356d79072560de703f6dbc1d26fa5d51a6d5ac1 /web/service/xray.go
parentc49a9e877cb8481a98564b45f3462f8f73189f6e (diff)
old designv1.0.9
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 d9e65f8d..33425c3c 100644
--- a/web/service/xray.go
+++ b/web/service/xray.go
@@ -160,5 +160,5 @@ func (s *XrayService) SetToNeedRestart() {
}
func (s *XrayService) IsNeedRestartAndSetFalse() bool {
- return isNeedXrayRestart.CompareAndSwap(true, false)
+ return isNeedXrayRestart.CAS(true, false)
}