mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-26 12:05:35 -05:00
fix a deadlock
This commit is contained in:
@@ -54,6 +54,7 @@ func (t *Periodic) checkedExecute() error {
|
||||
func (t *Periodic) Start() error {
|
||||
t.access.Lock()
|
||||
if t.running {
|
||||
t.access.Unlock()
|
||||
return nil
|
||||
}
|
||||
t.running = true
|
||||
|
||||
Reference in New Issue
Block a user