1
Fork 0

Don't complain about non-existent ice-servers.json.

This commit is contained in:
Juliusz Chroboczek 2021-01-02 00:34:59 +01:00
parent 450601f0e8
commit 0563356180
1 changed files with 3 additions and 1 deletions

View File

@ -79,7 +79,9 @@ func updateICEConfiguration() *configuration {
if ICEFilename != "" {
file, err := os.Open(ICEFilename)
if err != nil {
if !os.IsNotExist(err) {
log.Printf("Open %v: %v", ICEFilename, err)
}
} else {
defer file.Close()
d := json.NewDecoder(file)