Fix typo in occurred

This commit is contained in:
Alexandre Iooss 2020-10-14 21:36:12 +02:00
parent c3629bdbb5
commit 772ddb1994
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
4 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ func Serve(inputChannel chan srt.Packet, cfg Options) {
break
}
if err != nil {
log.Printf("Error occured while receiving SRT packet of type %s: %s", packet.PacketType, err)
log.Printf("Error occurred while receiving SRT packet of type %s: %s", packet.PacketType, err)
}
}
}

View File

@ -23,7 +23,7 @@ func handleStreamer(s *srtgo.SrtSocket, name string, clientDataChannels map[stri
// 5s timeout
n, err := s.Read(buff, 5000)
if err != nil {
log.Println("Error occured while reading SRT socket:", err)
log.Println("Error occurred while reading SRT socket:", err)
break
}

View File

@ -142,7 +142,7 @@ func StartASCIIArtStream(streamID string, reader io.ReadCloser) {
for {
n, err := reader.Read(pixelBuff)
if err != nil {
log.Printf("An error occured while reading input: %s", err)
log.Printf("An error occurred while reading input: %s", err)
break
}
if n == 0 {

View File

@ -51,7 +51,7 @@ func ingestFrom(inputChannel chan srt.Packet) {
break
}
if err != nil {
log.Printf("Error occured while receiving SRT srtPacket of type %s: %s", srtPacket.PacketType, err)
log.Printf("Error occurred while receiving SRT srtPacket of type %s: %s", srtPacket.PacketType, err)
}
}
}