|
@@ -80,9 +80,7 @@ func (s *Mjs) Exec(name string, data map[string]interface{}, durationMax time.Du
|
|
}
|
|
}
|
|
|
|
|
|
if durationMax > 0 {
|
|
if durationMax > 0 {
|
|
- log.Println("DMAX", durationMax)
|
|
|
|
time.AfterFunc(durationMax, func() {
|
|
time.AfterFunc(durationMax, func() {
|
|
- log.Println("DCOMPLERE")
|
|
|
|
vm.Interrupt(fmt.Sprintf("Exec script timeout (%v sec.)", durationMax/time.Second))
|
|
vm.Interrupt(fmt.Sprintf("Exec script timeout (%v sec.)", durationMax/time.Second))
|
|
})
|
|
})
|
|
}
|
|
}
|