Skip creating the named pipe on the client if we're using http signaling

* Blocks waiting on the open for write (`cat > signal`), at least for me.
This commit is contained in:
Arlo Breault 2016-01-19 21:44:23 -08:00
parent 62e6704d1f
commit 0abb3bd856

View file

@ -331,6 +331,7 @@ func main() {
log.Println("starting")
if offerURL == "" {
// This FIFO receives signaling messages.
err = syscall.Mkfifo("signal", 0600)
if err != nil {
@ -344,6 +345,7 @@ func main() {
}
defer signalFile.Close()
go readSignalingMessages(signalFile)
}
webrtc.SetLoggingVerbosity(1)