diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-11 09:33:14 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-11 09:33:14 +0100 |
commit | c2b823826db167594f8157b0b324b6fb1559caeb (patch) | |
tree | 291b4b18c9539a77a68554f9462ff348341277ff /server/lib/live-manager.ts | |
parent | 4f20856ed4d7f5bc0e85ad40b58af8014dba48db (diff) | |
download | PeerTube-c2b823826db167594f8157b0b324b6fb1559caeb.tar.gz PeerTube-c2b823826db167594f8157b0b324b6fb1559caeb.tar.zst PeerTube-c2b823826db167594f8157b0b324b6fb1559caeb.zip |
Log RTMP server error (address already in use)
Diffstat (limited to 'server/lib/live-manager.ts')
-rw-r--r-- | server/lib/live-manager.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/lib/live-manager.ts b/server/lib/live-manager.ts index 379f61bdf..7f5fdf899 100644 --- a/server/lib/live-manager.ts +++ b/server/lib/live-manager.ts | |||
@@ -109,6 +109,10 @@ class LiveManager { | |||
109 | logger.info('Running RTMP server on port %d', config.rtmp.port) | 109 | logger.info('Running RTMP server on port %d', config.rtmp.port) |
110 | 110 | ||
111 | this.rtmpServer = new NodeRtmpServer(config) | 111 | this.rtmpServer = new NodeRtmpServer(config) |
112 | this.rtmpServer.tcpServer.on('error', err => { | ||
113 | logger.error('Cannot run RTMP server.', { err }) | ||
114 | }) | ||
115 | |||
112 | this.rtmpServer.run() | 116 | this.rtmpServer.run() |
113 | } | 117 | } |
114 | 118 | ||