Allow unique streampipe fifos. Closes #883

This commit is contained in:
Gabe Kangas
2021-04-01 18:56:00 -07:00
parent d4d738a8ae
commit 64a5720a21
3 changed files with 4 additions and 4 deletions

View File

@ -89,7 +89,7 @@ func HandleConn(c *rtmp.Conn, nc net.Conn) {
log.Infoln("Inbound stream connected.")
_setStreamAsConnected()
pipePath := utils.GetTemporaryPipePath()
pipePath := utils.GetTemporaryPipePath(fmt.Sprint(data.GetRTMPPortNumber()))
if !utils.DoesFileExists(pipePath) {
err := syscall.Mkfifo(pipePath, 0666)
if err != nil {