mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-08-15 15:50:59 +00:00
alireza
This commit is contained in:
+1
-1
@@ -160,5 +160,5 @@ func (s *XrayService) SetToNeedRestart() {
|
||||
}
|
||||
|
||||
func (s *XrayService) IsNeedRestartAndSetFalse() bool {
|
||||
return isNeedXrayRestart.CAS(true, false)
|
||||
return isNeedXrayRestart.CompareAndSwap(true, false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user