mirror of
https://github.com/datarhei/core.git
synced 2025-10-07 00:43:39 +08:00
Reorder shutdown sequence
This commit is contained in:
@@ -1790,13 +1790,6 @@ func (a *api) stop() {
|
||||
}
|
||||
}
|
||||
|
||||
// Stop all restream processes
|
||||
if a.restream != nil {
|
||||
logger.Info().Log("Stopping all processes ...")
|
||||
a.restream.Stop()
|
||||
a.restream = nil
|
||||
}
|
||||
|
||||
// Stop the SRT server
|
||||
if a.srtserver != nil {
|
||||
a.log.logger.srt.Info().Log("Stopping ...")
|
||||
@@ -1845,6 +1838,13 @@ func (a *api) stop() {
|
||||
a.sidecarserver = nil
|
||||
}
|
||||
|
||||
// Stop all restream processes
|
||||
if a.restream != nil {
|
||||
logger.Info().Log("Stopping all processes ...")
|
||||
a.restream.Stop()
|
||||
a.restream = nil
|
||||
}
|
||||
|
||||
if a.iam != nil {
|
||||
a.iam.Close()
|
||||
}
|
||||
|
Reference in New Issue
Block a user