1
0
Fork 0

Reset system task creation time when restarting

This commit is contained in:
Gregory Eremin 2015-10-18 03:49:33 +03:00
parent 285d05cfd2
commit 0c77cdb096
1 changed files with 2 additions and 0 deletions

View File

@ -141,6 +141,8 @@ func (s *Satan) processSystemTask(t *task) {
if err := recover(); err != nil {
log.Printf("System task %s recovered from a panic\nError: %v\n", t, err)
debug.PrintStack()
t.createdAt = time.Now()
s.queue <- t // Restarting task
} else {
log.Printf("System task %s has stopped\n", t)