diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-03-17 19:07:49 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-03-17 19:07:49 +0300 |
| commit | 96786c94189f3d2f3f04c1915529c786228bdf42 (patch) | |
| tree | 879085e09a3cd485f3246f46be907fe77eb84a1a /web/service/xray.go | |
| parent | bc56e637376142c370c31b17558fc3778a863bd2 (diff) | |
alireza
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 33425c3c..d9e65f8d 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.CAS(true, false) + return isNeedXrayRestart.CompareAndSwap(true, false) } |
