Skip to content

Commit

Permalink
end rtmp socket if stream already publish
Browse files Browse the repository at this point in the history
  • Loading branch information
illuspas committed Dec 1, 2024
1 parent 0103c54 commit 74cae53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/session/rtmp_session.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export default class RtmpSession extends BaseSession {
const err = this.broadcast.postPush(this);
if (err != null) {
logger.error(`RTMP session ${this.id} ${this.ip} push ${this.streamPath} error, ${err}`);
this.socket.end();
}
};

Expand Down

0 comments on commit 74cae53

Please sign in to comment.