Browse Source

Log RTMP server error (address already in use)

tags/v3.0.1
Chocobozzz 1 week ago
parent
commit
c2b823826d
No known key found for this signature in database GPG Key ID: 583A612D890159BE
2 changed files with 5 additions and 1 deletions
  1. +1
    -1
      server.ts
  2. +4
    -0
      server/lib/live-manager.ts

+ 1
- 1
server.ts View File

@@ -283,7 +283,7 @@ async function startApplication () {

// Make server listening
server.listen(port, hostname, () => {
logger.info('Server listening on %s:%d', hostname, port)
logger.info('HTTP server listening on %s:%d', hostname, port)
logger.info('Web server: %s', WEBSERVER.URL)

Hooks.runAction('action:application.listening')


+ 4
- 0
server/lib/live-manager.ts View File

@@ -109,6 +109,10 @@ class LiveManager {
logger.info('Running RTMP server on port %d', config.rtmp.port)

this.rtmpServer = new NodeRtmpServer(config)
this.rtmpServer.tcpServer.on('error', err => {
logger.error('Cannot run RTMP server.', { err })
})

this.rtmpServer.run()
}



Loading…
Cancel
Save