main
Nilo Roberto C Paim 2025-08-13 19:15:05 -03:00
parent 18e0e693e5
commit b3be5b8bbf
1 changed files with 4 additions and 1 deletions

View File

@ -107,7 +107,10 @@ func OnPubStop(c *fiber.Ctx) error {
return err
}
transm := globals.Transmissions[p.StreamName]
transm, exists := globals.Transmissions[p.StreamName]
if !exists {
return fiber.ErrNotFound
}
now := time.Now()
duration := now.Sub(transm.StartTime)