fix a deadlock

pull/1331/head v3.37
Darien Raymond 2018-08-29 23:12:47 +02:00
parent eb05a92592
commit eaa420411d
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 1 additions and 0 deletions

View File

@ -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